final_game_tech
final_game_tech copied to clipboard
Strange key codes on Linux
When I type 'q' on the keyboard, I get the keypress event.keyboard.keyCode of 0x18 "0x17-0x19 IME-Keys" and an input event for 0x71 = 'q'.
On Windows, I get keypress 0x51='Q' and input = 0x71 = 'q', then keypress 0x41 'A' and input 0x61 = 'a'.
I found, that I had to use the mappedKey instead of keyCode, but it was a pitfall for me. Maybe set the keycode to zero on button press events?