diff options
author | Owen Smith <owen.smith@citrix.com> | 2017-11-03 11:56:28 +0000 |
---|---|---|
committer | Stefano Stabellini <sstabellini@kernel.org> | 2017-12-14 15:24:30 -0800 |
commit | de80d78594b4c3767a12d8d42debcf12cbf85a5b (patch) | |
tree | 0b710f1c211d20d159cad589e9f80cf3e0cad9b4 | |
parent | 1491ede74dd441d77e7d8df5c65892ddfa140879 (diff) |
ui: generate qcode to linux mappings
Use keycodedb to generate a qcode to linux mapping
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | include/ui/input.h | 3 | ||||
-rw-r--r-- | ui/input-keymap.c | 1 |
3 files changed, 5 insertions, 0 deletions
@@ -229,6 +229,7 @@ KEYCODEMAP_FILES = \ ui/input-keymap-linux-to-qcode.c \ ui/input-keymap-qcode-to-qnum.c \ ui/input-keymap-qnum-to-qcode.c \ + ui/input-keymap-qcode-to-linux.c \ $(NULL) GENERATED_FILES += $(KEYCODEMAP_FILES) diff --git a/include/ui/input.h b/include/ui/input.h index f8cee43f65..5cc76d6e41 100644 --- a/include/ui/input.h +++ b/include/ui/input.h @@ -77,4 +77,7 @@ extern const guint16 qemu_input_map_qcode_to_qnum[]; extern const guint qemu_input_map_qnum_to_qcode_len; extern const guint16 qemu_input_map_qnum_to_qcode[]; +extern const guint qemu_input_map_qcode_to_linux_len; +extern const guint16 qemu_input_map_qcode_to_linux[]; + #endif /* INPUT_H */ diff --git a/ui/input-keymap.c b/ui/input-keymap.c index 3a19a169f5..663986a17b 100644 --- a/ui/input-keymap.c +++ b/ui/input-keymap.c @@ -8,6 +8,7 @@ #include "ui/input-keymap-linux-to-qcode.c" #include "ui/input-keymap-qcode-to-qnum.c" #include "ui/input-keymap-qnum-to-qcode.c" +#include "ui/input-keymap-qcode-to-linux.c" int qemu_input_linux_to_qcode(unsigned int lnx) { |