Hi,
In my JOGL application (which is running on Linux) I have set up a KeyListener. When the user presses a . character several thousand GLDrawPixel() commands take place (within loops of course), positioning png images at critical points on my GLcanvas. Each successive press of . will cause these images to be displayed in completely different positions. This works ok, but the problem I have is that if the user holds the . key down for half a second, the canvas is still changing 3 seconds later, as the key events are queued. When the user releases the key, I would like the canvas to stop its updating immediately. Have tried removing the keylistener when the redrawing method starts and then adding it again as it finishes but this does not work (when I thought it would )
Note that I DO want the user to be able to hold the . key down and watch the display change (as smoothly as possible) but the key release effect should be instantaneous else the user won’t feel in control of the program.
Any tips appreciated.
Tks
Sally