You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have non-QWERTY keyboard (e. g. French AZERTY) you will get wrong scan codes in SDL_KeyboardEvent while running your code compiled with Emscripten in browser. There are no such problem while running your application natively (tested on Windows and Mac OS X). Also this website https://www.toptal.com/developers/keycode shows correct scan codes, so it is not a browser bug or a JavaScript API limitation. SDL uses deprecated EmscriptenKeyboardEvent::keyCode which seems to be filled from JavaScript's event.keyCode which contains wrong value even in JavaScript (if check using the website above). SDL should use a modern attribute EmscriptenKeyboardEvent::code which filled with the correct values on non-QWERTY keyboards (at least it shows correct values on the website).
OS: Windows, Mac OS X
Browser: Google Chrome
Latest stable Emscripten version with builtin SDL2 library
The text was updated successfully, but these errors were encountered:
If you have non-QWERTY keyboard (e. g. French AZERTY) you will get wrong scan codes in
SDL_KeyboardEvent
while running your code compiled with Emscripten in browser. There are no such problem while running your application natively (tested on Windows and Mac OS X). Also this website https://www.toptal.com/developers/keycode shows correct scan codes, so it is not a browser bug or a JavaScript API limitation. SDL uses deprecatedEmscriptenKeyboardEvent::keyCode
which seems to be filled from JavaScript'sevent.keyCode
which contains wrong value even in JavaScript (if check using the website above). SDL should use a modern attributeEmscriptenKeyboardEvent::code
which filled with the correct values on non-QWERTY keyboards (at least it shows correct values on the website).OS: Windows, Mac OS X
Browser: Google Chrome
Latest stable Emscripten version with builtin SDL2 library
The text was updated successfully, but these errors were encountered: