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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

philipwhiuk
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?

Best regards and thanks  for your time,

Philip Whitehouse
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
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