Login  Register

Re: NEWT KeyEvent Function Key Trouble

Posted by Jake on Dec 08, 2013; 11:07pm
URL: https://forum.jogamp.org/NEWT-KeyEvent-Function-Key-Trouble-tp4030828p4030831.html

I was working off this example, from http://jogamp.org/jogl/doc/NEWT-Overview.html:

How to pass user input back to the rendering loop ?

The following example shows you how to use a fifo to pipe events from the EDT (listener) to the rendering loop.
TestParenting02NEWT.java [v2.0-rc3]
KeyAction.java [v2.0-rc3]


I have a rendering loop that I want to pass input to and using the EventFifo like in the example seemed like the easiest method.

About as much as I know about KeyListeners is that they execute a specified function upon receiving an event. I just want to capture the event information and put it directly in my render loop so I can use it to animate.

Any suggestions are welcome