| Summary: | Emscripten's key events should attempt to use the 'code' property. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Tanner Rogalsky <tanner> |
| Component: | events | Assignee: | Ryan C. Gordon <icculus> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | charlie, emil.lenngren |
| Version: | HG 2.1 | Keywords: | target-2.0.16 |
| Hardware: | Other | ||
| OS: | All | ||
| Attachments: | Updated patch | ||
|
Description
Tanner Rogalsky
2016-02-15 18:42:09 UTC
Yes, please implement this. I have a game which uses SDL scancodes to work properly regardless of keyboard layout, but noticed that it doesn't work correctly when compiling for the emscripten target when I have a Dvorak keyboard. There's currently an unmerged downstream patch for this: https://github.com/emscripten-ports/SDL2/pull/117 The patch doesn't cleanly apply, but conceptually seems good. Ryan, can you review for 2.0.14? Let's get this into 2.0.16, but I don't want to apply it to the almost-done 2.0.14. --ryan. Created attachment 4418 [details]
Updated patch
Fixed the patch, not too sure about the KaiOS bits.
This does break support for (old) browsers that don't support `.code`. I don't know if that's actually a problem for anyone... |