|
Author |
Topic: virtual camera tool (Read 975 times) |
|
barikan
|
virtual camera tool
« on: Jan 22nd, 2004, 7:05am » |
|
hello, i am working on a virtual camera tool, which will let users to create and record simple cinematographic compositions. here is a prototype: http://www.ucantekme.com/p5/virtualcamera/ - - - i realized that arrow keys UP, DOWN, LEFT and RIGHT do not work in windows XP and mac. did you experience anything like this. - - - i used getKeyCode() method, now it is working on xp and mac.
|
« Last Edit: Jan 23rd, 2004, 8:53pm by barikan » |
|
|
|
|
Akbar Z. Behbood Guest
|
Re: virtual camera tool
« Reply #1 on: Jun 27th, 2004, 3:21pm » |
|
What is getKeyCode() method? is it a way for registering it? plz send an eamil to me at behbood@behbood.tk
|
|
|
|
barikan
|
Re: virtual camera tool
« Reply #2 on: Jun 27th, 2004, 4:30pm » |
|
getKeyCode() method returns the integer key-code associated with the key in this event. http://java.sun.com/j2se/1.3/docs/api/java/awt/event/KeyEvent.html i used it in this way: int myKey = e.getKeyCode(); if (myKey == 3 { up = true; down = false; left = false; right = false; } else if (myKey == 40) { down = true; up = false; left = false; right = false; } else if (myKey == 37) { left = true; down = false; up = false; right = false; } else if (myKey == 39) { right = true; down = false; left = false; up = false; } // KEY UP = 38; // KEY DOWN = 40; // KEY LEFT = 37; // KEY RIGHT = 39;
|
« Last Edit: Jun 27th, 2004, 4:36pm by barikan » |
|
|
|
|
mohn
|
Re: virtual camera tool
« Reply #3 on: Jun 27th, 2004, 5:30pm » |
|
barikan works fine on my mac ( OS X 10.3.4 w/ java 1.4.2 - safari ). the only thing that is inconsistent is the recording feature. can't decide if it is a interactivity issue or the actual interface is not working... nice though ... keep it up! mohn
|
|
|
|
barikan
|
Re: virtual camera tool
« Reply #4 on: Jun 28th, 2004, 3:20pm » |
|
thanks mohn. yeah these buttons are not functional as an interface they are currently just signifiers for recording and playing events. the work is in progress, so i'll use them later.
|
« Last Edit: Jun 28th, 2004, 3:21pm by barikan » |
|
|
|
|
|