mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
ed7b2624f2
commit
2ec78706d1
9 changed files with 302 additions and 319 deletions
|
@ -18,9 +18,10 @@ ppm_save(const char *filename, void *display_surface) "%s surface=%p"
|
|||
# ui/gtk.c
|
||||
gd_switch(const char *tab, int width, int height) "tab=%s, width=%d, height=%d"
|
||||
gd_update(const char *tab, int x, int y, int w, int h) "tab=%s, x=%d, y=%d, w=%d, h=%d"
|
||||
gd_key_event(const char *tab, int gdk_keycode, int qemu_keycode, const char *action) "tab=%s, translated GDK keycode %d to QEMU keycode %d (%s)"
|
||||
gd_key_event(const char *tab, int gdk_keycode, int qkeycode, const char *action) "tab=%s, translated GDK keycode %d to QKeyCode %d (%s)"
|
||||
gd_grab(const char *tab, const char *device, const char *reason) "tab=%s, dev=%s, reason=%s"
|
||||
gd_ungrab(const char *tab, const char *device) "tab=%s, dev=%s"
|
||||
gd_keymap_windowing(const char *name) "backend=%s"
|
||||
|
||||
# ui/vnc.c
|
||||
vnc_key_guest_leds(bool caps, bool num, bool scroll) "caps %d, num %d, scroll %d"
|
||||
|
@ -79,3 +80,9 @@ qemu_spice_create_update(uint32_t left, uint32_t right, uint32_t top, uint32_t b
|
|||
keymap_parse(const char *file) "file %s"
|
||||
keymap_add(const char *type, int sym, int code, const char *line) "%-6s sym=0x%04x code=0x%04x (line: %s)"
|
||||
keymap_unmapped(int sym) "sym=0x%04x"
|
||||
|
||||
# ui/x_keymap.c
|
||||
xkeymap_extension(const char *name) "extension '%s'"
|
||||
xkeymap_vendor(const char *name) "vendor '%s'"
|
||||
xkeymap_keycodes(const char *name) "keycodes '%s'"
|
||||
xkeymap_keymap(const char *name) "keymap '%s'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue