From faaa1d1404caa3ff46fd386a365697857077548b Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Sat, 18 Sep 2021 13:59:14 +0200 Subject: [PATCH] Add XKB settings --- lv_drv_conf.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lv_drv_conf.h b/lv_drv_conf.h index 6c7f009..c4a7e34 100644 --- a/lv_drv_conf.h +++ b/lv_drv_conf.h @@ -411,6 +411,23 @@ # endif /*EVDEV_CALIBRATE*/ #endif /*USE_EVDEV*/ +/*------------------------------------------------- + * Full keyboard support for evdev and libinput interface + *------------------------------------------------*/ +#if USE_LIBINPUT || USE_BSD_LIBINPUT || USE_EVDEV || USE_BSD_EVDEV +# ifndef USE_XKB +# define USE_XKB 1 +# endif + +# if USE_XKB +# define XKB_KEY_MAP { .rules = NULL, \ + .model = "pc101", \ + .layout = "us", \ + .variant = NULL, \ + .options = NULL } /*"setxkbmap -query" can help find the right values for your keyboard*/ +# endif /*USE_XKB*/ +#endif /*USE_LIBINPUT || USE_BSD_LIBINPUT || USE_EVDEV || USE_BSD_EVDEV*/ + /*------------------------------- * Keyboard of a PC (using SDL) *------------------------------*/