Login  Register

Re: JOGL 2.0 (OpenGL/OpenGL-ES) backend for LibGDX

Posted by Xerxes Rånby on Mar 05, 2013; 11:49am
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4028501.html

sgothel have been thorough and fixed the LinuxEventDeviceTracker to send the correct released events.
http://jogamp.org/git/?p=jogl.git;a=blobdiff;f=src/newt/classes/jogamp/newt/driver/linux/LinuxEventDeviceTracker.java;h=2c0e6d3dd5163b80b21de9e5fac15f8d499245cc;hp=5efce2524a9ac343d2a9e2c7ac4bab826252a149;hb=85338858f5c58694fa88e77df1386d0556887944;hpb=a40ee817a3bd537b0de7018772b0835f995a1bed

The only difference between the NEWT events generated by the Rasberry Pi and X11 that I am aware of is that the Raspberry Pi currently always sends the NEWT VKey and Printable char all in uppercase. I guess this might confuse JMonkeyEngine that expects the 'w' to be lowercase when Raspberry currently sends a 'W'.

TODO: We can fix this by using a "unicode to lowercase" function when the "shift" modifier is not in use for all "KeyEvent.isPrintableKey" VKey's.

TODO 2: We need to figure out how to do proper key-map mapping on the Raspberry Pi, language key-map mapping is usually performed inside the X11 server, and we dont use the X11 server on the pi for keyboard input.