x11: Add keymap support

XkbKeycodeToKeySym is replaced with XkbLookupKeySym, which can take the modifier states. The associated cmake check has been renamed for consistency.

Only the XKB path is currently handled. The deprecated XKeycodeToKeysym path is TODO.
This commit is contained in:
Frank Praznik
2024-06-22 19:09:50 -04:00
parent c874a78ffb
commit 974bbea20b
9 changed files with 87 additions and 72 deletions

View File

@@ -194,7 +194,7 @@
#define SDL_VIDEO_DRIVER_X11_XRANDR 1
#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
#define SDL_VIDEO_DRIVER_X11_HAS_XKBLOOKUPKEYSYM 1
#ifdef MAC_OS_X_VERSION_10_8
/*