Login  Register

Re: Bug In NEWT KeyListener

Posted by gouessej on Apr 09, 2014; 7:56am
URL: https://forum.jogamp.org/Bug-In-NEWT-KeyListener-tp4032120p4032122.html

Hi

It's not a bug, AWT has the same behaviour, the operating system can "auto repeat" events. Unlike AWT, NEWT allows you to make the distinction between "real" events and auto repeat events, just call KeyEvent.isAutoRepeat():
https://github.com/sgothel/jogl/blob/master/src/newt/classes/com/jogamp/newt/event/InputEvent.java#L124

Please don't be peremptory when claiming that there is a bug, a simple look at our Java documentation and/or our source code would have been enough to clarify that.
Julien Gouesse | Personal blog | Website