Newt KeyEvent "typed" only produced on release and auto-repeat
Posted by GiGurra on Jan 28, 2013; 10:21pm
URL: https://forum.jogamp.org/Newt-KeyEvent-typed-only-produced-on-release-and-auto-repeat-tp4028032.html
While developing a small OpenGL/OpenCL game using JOGL and JOCL, we've run into a problem with newt KeyEvents.
As we target Windows (and other platforms), and want to support chat, we need to be able
to get correct key characters for different keyboard events.
(These tests are on oracle's java7 64 bit jvm on windows 7 using jogl 2.0-rc11)
Jogl NEWT KeyEvent typed events deliver the correct characters, HOWEVER:
The first typed event arrives with a significant delay, since the event is only
produced when the key is released (or when the first autorepeat kicks in).
This is problematic as it makes text input seem very sluggish.
Pressed-events are delivered instantly, however as documented, these do not give full character information.
Is there any known way to solve or work around this?
Is there any jogl beta where typed events get delivered faster on windows or where Pressed events contain character info?