How to correctly distinguish the pressing Alt?
when I call the following code at the output.
works on the left alt, now I get 2 of the code, by pressing alt-one of them is correct, on the right 2 also shows the code but both are wrong, the same problem exists when pressing the print screen.
BTW: Which OS are you using?
I'm using Windows 7. Thought there is a solution that allows using KeyMapper identify pressing any key on the keyboard (the internal key name is not important, the main thing is the uniqueness), which I could not find in the documentation. Apparently not, will have to use JOGL.
I can post the code for the KeyMapper if that would help. Anyway, i don't get the JOGL idea. You can use the AWTGLRenderer of LWJGL instead which lets you work with AWT key event directly. No need to switch to JOGL.