Skip to content

Commit

Permalink
ui: generate qcode to linux mappings
Browse files Browse the repository at this point in the history
Use keycodedb to generate a qcode to linux mapping

Signed-off-by: Owen Smith <[email protected]>
Reviewed-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
  • Loading branch information
OwenSmith authored and sstabellini committed Dec 14, 2017
1 parent 1491ede commit de80d78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions include/ui/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
1 change: 1 addition & 0 deletions ui/input-keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit de80d78

Please sign in to comment.