Răsfoiți Sursa

Enable KEYCODE_OPTION_LATIN_LETTERS by default

It turns out that the non-Latin keyboards (Russian, Thai, Greek, etc.) are almost all QWERTY layout plus native language labels. Feedback from users is that they expect to see the ASCII keycodes and key names when using those keyboards, so we'll enable this option by default.
Sam Lantinga 1 an în urmă
părinte
comite
4073c4910e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/events/SDL_keyboard.c

+ 1 - 1
src/events/SDL_keyboard.c

@@ -40,7 +40,7 @@
 #define KEYCODE_OPTION_HIDE_NUMPAD      0x01
 #define KEYCODE_OPTION_FRENCH_NUMBERS   0x02
 #define KEYCODE_OPTION_LATIN_LETTERS    0x04
-#define DEFAULT_KEYCODE_OPTIONS (KEYCODE_OPTION_FRENCH_NUMBERS)
+#define DEFAULT_KEYCODE_OPTIONS         (KEYCODE_OPTION_FRENCH_NUMBERS | KEYCODE_OPTION_LATIN_LETTERS)
 
 typedef struct SDL_KeyboardInstance
 {