Lakka: Patch to fix keyboard typing

Upstream of patch used by Lakka at build time
1943ad296e/packages/libretro/retroarch/patches/retroarch-01-xkb-fix.patch
This commit is contained in:
Jean-André Santoni 2021-11-17 21:48:05 +01:00 committed by Tomáš Kelemen (vudiq)
parent efad7a7dcc
commit 6a99832a4d
No known key found for this signature in database
GPG Key ID: 5CE55E600E0B3B22

View File

@ -80,6 +80,13 @@
#define UDEV_XKB_HANDLING
#endif
/* Force UDEV_XKB_HANDLING for Lakka */
#ifdef HAVE_LAKKA
#ifndef UDEV_XKB_HANDLING
#define UDEV_XKB_HANDLING
#endif
#endif
#define UDEV_MAX_KEYS (KEY_MAX + 7) / 8
typedef struct udev_input udev_input_t;
@ -1391,7 +1398,12 @@ static void *udev_input_init(const char *joypad_driver)
goto error;
video_context_driver_get_ident(&ctx_ident);
#ifdef HAVE_LAKKA
/* Force xkb_handling on Lakka */
udev->xkb_handling = true;
#else
udev->xkb_handling = string_is_equal(ctx_ident.ident, "kms");
#endif /* HAVE_LAKKA */
#endif
#if defined(HAVE_EPOLL)