KeyAdapter() gone from NEWT's KeyAdapter?

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

KeyAdapter() gone from NEWT's KeyAdapter?

ac
The keyTyped(com.jogamp.newt.event.KeyEvent e) method used to be part of com.jogamp.newt.event.KeyAdapter until recently, but not in RC12, is there a reason for this?
Reply | Threaded
Open this post in threaded view
|

Re: KeyAdapter() gone from NEWT's KeyAdapter?

gouessej
Administrator
Hi

Typed events have been removed from NEWT as they weren't necessary and to reduce the memory footprint. You can still simulate them by using successive pressed and released events + isAutoRepeat(). We already discussed about that on IRC.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: KeyAdapter() gone from NEWT's KeyAdapter?

Sven Gothel
Administrator
On 07/02/2013 08:19 PM, gouessej [via jogamp] wrote:
> Hi
>
> Typed events have been removed from NEWT as they weren't necessary and to
> reduce the memory footprint.
.. the event roundtrip costs .. plus removing the code which synthesized it,
plus removes a side-effect bug w/ OSX/CALayer and NewtCanvasAWT.

https://jogamp.org/bugzilla/show_bug.cgi?id=688

> You can still simulate them by using successive
> pressed and released events + isAutoRepeat(). We already discussed about that
> on IRC.

~Sven


signature.asc (911 bytes) Download Attachment