diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2018-01-17 16:47:15 +0000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-01-25 15:02:00 +0100 |
commit | 2ec78706d188df7d3dab43d07b19b05ef7800a44 (patch) | |
tree | 1c569f88ce17ab70fc1bf5f4940719705438b2fc /ui/x_keymap.h | |
parent | ed7b2624f241b58ca9e5437470339d60bf87e231 (diff) | |
download | qemu-2ec78706d188df7d3dab43d07b19b05ef7800a44.zip qemu-2ec78706d188df7d3dab43d07b19b05ef7800a44.tar.gz qemu-2ec78706d188df7d3dab43d07b19b05ef7800a44.tar.bz2 |
ui: convert GTK and SDL1 frontends to keycodemapdb
The x_keycode_to_pc_keycode and evdev_keycode_to_pc_keycode
tables are replaced with automatically generated tables.
In addition the X11 heuristics are improved to detect running
on XQuartz and XWin X11 servers, to activate the correct OS-X
and Win32 keycode maps.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20180117164717.15855-3-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/x_keymap.h')
-rw-r--r-- | ui/x_keymap.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/x_keymap.h b/ui/x_keymap.h index afde2e9..0395e33 100644 --- a/ui/x_keymap.h +++ b/ui/x_keymap.h @@ -1,7 +1,7 @@ /* - * QEMU SDL display driver + * QEMU X11 keymaps * - * Copyright (c) 2003 Fabrice Bellard + * Copyright (c) 2017 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -25,8 +25,8 @@ #ifndef QEMU_X_KEYMAP_H #define QEMU_X_KEYMAP_H -uint8_t translate_xfree86_keycode(const int key); +#include <X11/Xlib.h> -uint8_t translate_evdev_keycode(const int key); +const guint16 *qemu_xkeymap_mapping_table(Display *dpy, size_t *maplen); #endif |