final_game_tech icon indicating copy to clipboard operation
final_game_tech copied to clipboard

Strange key codes on Linux

Open KungPhoo opened this issue 9 months ago • 0 comments

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?

KungPhoo avatar Mar 21 '25 22:03 KungPhoo