SDL/src/events
Ryan C. Gordon 9221548114 emscripten: Make an attempt at correct keyboard scancode/keycodes.
This uses a newer browser API to get physical scancodes, but still
uses the (deprecated) event field that we were already using for
scancodes, but for keycodes instead now, which appears to be more
accurate.

Since keyboard layout isn't (generally) available to web apps, this
adds an internal interface to send key events with both scancode
and keycode to SDL's internals, instead of sending just scancodes and
expecting SDL to use its own keymap to generate keycodes.

Future work in this area would be to use the keyboard layout APIs
on browsers that support them, which would allow us to use SDL's
usual keymap code and not rely on a deprecated browser API, but
until we get there, this patch gives significantly more correct
results than we would have before.

Fixes #2098.
2022-10-28 16:19:00 -04:00
..
blank_cursor.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
default_cursor.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
imKStoUCS.c wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior 2021-09-23 11:50:47 -07:00
imKStoUCS.h wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior 2021-09-23 11:50:47 -07:00
scancodes_ascii.h on-screen keyboard newline is reported as an Enter key 2022-07-01 09:17:30 -07:00
scancodes_darwin.h X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
scancodes_linux.h Added documentation for some scancodes 2022-10-14 06:33:38 -07:00
scancodes_windows.h X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
scancodes_xfree86.h X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
SDL_clipboardevents.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_clipboardevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_displayevents.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_displayevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dropevents.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dropevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_events.c Improve behavior of SDL_events_need_periodic_poll() and SDL_events_need_polling() 2022-07-25 09:00:31 -07:00
SDL_events_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_gesture.c Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!) 2022-06-17 10:22:28 -07:00
SDL_gesture_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_keyboard.c emscripten: Make an attempt at correct keyboard scancode/keycodes. 2022-10-28 16:19:00 -04:00
SDL_keyboard_c.h emscripten: Make an attempt at correct keyboard scancode/keycodes. 2022-10-28 16:19:00 -04:00
SDL_mouse.c Updated variable name for mouse coordinates in mouse wheel events 2022-10-08 13:18:00 -07:00
SDL_mouse_c.h Added a hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether to use system mouse acceleration on raw relative motion. 2022-08-22 16:48:09 -07:00
SDL_quit.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_scancode_tables.c X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
SDL_scancode_tables_c.h X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
SDL_touch.c Vita: add hint to select which touchpad generates mouse events 2022-03-28 08:36:32 -07:00
SDL_touch_c.h Fixed bug #2032: add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!) 2022-02-08 11:32:20 +01:00
SDL_windowevents.c events: Don't lose window RESIZED events during SIZED_CHANGED processing. 2022-07-31 22:10:45 -04:00
SDL_windowevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00