Login  Register

Re: com.jogamp.newt.event.KeyEvent; - keyPressed behaviour

Posted by Sven Gothel on Nov 06, 2011; 8:39pm
URL: https://forum.jogamp.org/com-jogamp-newt-event-KeyEvent-keyPressed-behaviour-tp3482675p3485233.html

On Saturday, November 05, 2011 03:59:30 PM philipwhiuk [via jogamp] wrote:

>
> Hello,
>
> I'm very new to NEWT but have used Swing/AWT fairly extensively.
>
> Can I just clarify the behaviour of keyPressed events. My understanding and
> experience from Swing says they are fired once per keyPress. However in NEWT
> they seem to be fired like keyTyped events, continuously while the key is
> held down.
>
> Is this intentional or accidental?

keyTyped fired a lot w/o lifting the key (keyRelease) is surely not desired.
Can you help w/ a proper bug description please ?
See:
  http://forum.jogamp.org/Problem-with-GLProfile-and-jogl2-rc2-td3447491.html#a3447546
  http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing

We actually test the NEWT and NEWT/AWT key/mouse behavior in our unit tests
and they rarely fail (due to some timing issue or popped up applications).

>
> Best regards and thanks  for your time,
>
> Philip Whitehouse

~Sven