Ryujinx-SDL/src/events
Sam Lantinga 3b837a2659 Fixed bug 3188 - AZERTY keyboard support broken and inconsistent
Daniel Gibson

AZERTY keyboard layouts (which are the default layouts in France and Belgium) don't have the number keys (1, 2, ..., 9, 0) in the first row of keys, but ?, &, ?", ', (, -, ?_, ??), = (with small differences between the France and Belgian variants). Numbers are reached via shift.

On Linux and OSX, SDL seems to use the corresponding ISO 8859-1 codes (231 for ?232 for ?tc) as SDL_Keycode (but no SDK_* constants exists for those values!), while on Windows SDL seems to map those keys to SDLK_1, SDLK_2 etc, like you'd get on QWERTY.
I don't know how other platforms behave.

So we have two problems:
1. At least on Linux and OSX invalid/undefined SDL_Keycodes are returned
2. Different platforms behave differently (Windows vs Linux/OSX)

It's unclear what behavior is desired: Should SDL_* constants for those keys be introduced (and Windows behavior changed accordingly)?
Or should all platforms behave like Windows here and use the existing SDLK_1, ..., SDLK_0 keycodes?

This bug on the mailing list:
https://forums.libsdl.org/viewtopic.php?t=11555 (my post about Linux/Windows)
https://forums.libsdl.org/viewtopic.php?t=11573 (Tim Walters discovered the same problem on OSX about 1.5 weeks later).
2017-08-12 15:41:03 -07:00
..
blank_cursor.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
default_cursor.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
scancodes_darwin.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
scancodes_linux.h Fixed bug 3703 - Missing media keys support on Amazon Fire TV remote control 2017-07-20 10:46:38 -07:00
scancodes_windows.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
scancodes_xfree86.h Fixed bug 3703 - Missing media keys support on Amazon Fire TV remote control 2017-07-20 10:46:38 -07:00
SDL_clipboardevents_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_clipboardevents.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_dropevents_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_dropevents.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_events_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_events.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_gesture_c.h Fixed compiler warning about redundant declaration. 2017-07-09 23:00:25 +02:00
SDL_gesture.c Removed newlines from error messages. 2017-03-26 21:00:19 +02:00
SDL_keyboard_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_keyboard.c Fixed bug 3188 - AZERTY keyboard support broken and inconsistent 2017-08-12 15:41:03 -07:00
SDL_mouse_c.h Added a hint SDL_HINT_TOUCH_MOUSE_EVENTS to control whether touch events generate synthetic mouse events. 2017-08-03 09:48:44 -07:00
SDL_mouse.c Added a hint SDL_HINT_TOUCH_MOUSE_EVENTS to control whether touch events generate synthetic mouse events. 2017-08-03 09:48:44 -07:00
SDL_quit.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_sysevents.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_touch_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_touch.c Fixed bug 3583 - X11 touch device can be permanently lost 2017-02-11 11:14:48 -08:00
SDL_windowevents_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowevents.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00