Re: [JAVA3D] KeyEvent auto-release

2003-01-24 Thread Brandon
I had the same problem on redhat 7.2 The way I got around it was to keep track of the first time it was released and then always perform the action one more time (ignoring the first release). So on windows the first release is ignored but after that it isn't and so we don't move. On linux the firs

Re: [JAVA3D] KeyEvent auto-release

2003-01-24 Thread John Wright
Martin, Perhaps you could have your Java application make the modification to Linux directly? Or perhaps as a clumsy work around use a timer and ignore any KeyRelease that occurs if it is immediately followed by a "KeyPress". This seems like strange behavior for Linux as it defeats the whole con

Re: [JAVA3D] KeyEvent auto-release

2003-01-24 Thread Martin
I posted the post below earlier and wanted to give up an update! I have solved... kind off... what was causing the KeyRelease... It's the KeyRepeat mechanisum of my OS (Debian-Linux). I changed the setting and the release stopped! Anyone know of a way to Override this directly via my Program? Ha

[JAVA3D] KeyEvent auto-release

2003-01-23 Thread Martin
Hi. I'm having a problem and need some help or advise. Ive created a scene that uses two Behaviors. One that uses a WakeupOnElapsedFrames criterion triggered by an Alpha object and another that uses two WakeupOnAWTEvent criterion, KeyEvent.KEY_PRESSED & KeyEvent.KEY_RELEASED. I'm changing the sta

[JAVA3D] KeyEvent

2000-08-18 Thread b. white
Hi I am handling key Pressed events like this. JButton samex; public void myMethod() { samex = new JButton("Same"); samex.setMnemonic(KeyEvent.VK_V); samex.setActionCommand("Same"); addKeyListener(this); //my class Extends KeyListener } public void keyTyped(KeyEvent e){