Re: Wrong keyCodes with NEWT on Linux.
Posted by lex on Aug 15, 2011; 11:05pm
URL: https://forum.jogamp.org/Wrong-keyCodes-with-NEWT-on-Linux-tp3256939p3257166.html
I use a pretty standard Logitech QWERTY keyboard.
More strange results:
It seems that all the letters are offset by 32, unless they are used in conjunction with Shift. So when pressing Q, i get the key code equal to (KeyEvent.VK_Q + 32). And when pressing Shift + Q, the key code will be equal to KeyEvent.VK_Q.
Numbers 0 - 9 match their key codes, unless used with Shift, then I get key codes which are not even in the KeyEvent constants.
Braces, colon, and quote keys resolve to strange key codes not found in KeyEventCosntants.
Numpad keys, including the numpad enter key, resolve to completely strange keycodes (over 60 000) with or without numlock. Though the key codes are different depending on the numlock state.
I have done a quick test on Windows (another machine) and everything worked fine. My guess is that linux support is lacking and the native lib is sending raw keycodes.
I am using jogl version: 2.0.rc2 (Released on 03-Mar-2011)