diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 10:24:19 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 12:27:47 +0100 |
commit | 1eeeaefecb634ea734059685648c058dd600bcae (patch) | |
tree | c03f7dab7aa64179f295ebb83e0d4bdbdb7b5e67 /fbi.c | |
parent | 1e49f9371f39475be7d2a3a9be2994ce5d27870b (diff) | |
download | fbida-1eeeaefecb634ea734059685648c058dd600bcae.tar.gz |
kbd: experimental libinput support
Diffstat (limited to 'fbi.c')
-rw-r--r-- | fbi.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -950,7 +950,11 @@ svga_show(struct flist *f, struct flist *prev, case KEY_D: /* need shift state for this one */ return KEY_D | (keymod << 16); + + case KEY_RESERVED: + /* ignored event */ break; + default: return keycode; } @@ -1322,6 +1326,7 @@ int main(int argc, char *argv[]) int once; int i, arg, key; bool framebuffer = false; + bool use_libinput; char *info, *desc, *device, *output, *mode; char linebuffer[128]; struct flist *fprev = NULL; @@ -1376,6 +1381,7 @@ int main(int argc, char *argv[]) timeout = GET_TIMEOUT(); pcd_res = GET_PCD_RES(); interactive = GET_INTERACTIVE(); + use_libinput = GET_LIBINPUT(); fontname = cfg_get_str(O_FONT); filelist = cfg_get_str(O_FILE_LIST); @@ -1442,7 +1448,7 @@ int main(int argc, char *argv[]) shadow_init(gfx); /* svga main loop */ - kbd_init(); + kbd_init(use_libinput, gfx->devnum); desc = NULL; info = NULL; for (;;) { |