Login  Register

Re: Wrong keyCodes with NEWT on Linux.

Posted by lex on Aug 17, 2011; 10:11pm
URL: https://forum.jogamp.org/Wrong-keyCodes-with-NEWT-on-Linux-tp3256939p3263117.html

I have finished an automated ANT script to download jogl depencies and native libs, setup the classpath and native library path, and finally, compile and run an example. Here are the files:

build.xml:       http://pastebin.com/7tGXM61w
Example.java: http://pastebin.com/SaRgkGCz

To run: "ant run64". or "ant run32".

Press the key Q, you will see the correct key code as well as the received key code.
Also try Shift+Q.

You can change the fullscreen settings in Example.java by modifying the following line:
window.setFullscreen(false);

TEST RESULTS:
Wrong keycode for Arch Linux 64 bit.
Wrong keycode for Linux Mint 32 bit.

This setup is consistently buggy for me on two different machines with two different variants of Linux.