aboutsummaryrefslogtreecommitdiff
path: root/ui/keymaps.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-22 10:28:13 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-05 10:45:44 +0100
commit4ed26e19d90bf5a4ea5662118ae5a2af46e61d36 (patch)
tree9c158c2ce5452370cd575f1d38f52ae9bbb7761a /ui/keymaps.h
parentc2f2ba4983aa1dd634e78347706e6585afc1f2a0 (diff)
downloadqemu-4ed26e19d90bf5a4ea5662118ae5a2af46e61d36.zip
qemu-4ed26e19d90bf5a4ea5662118ae5a2af46e61d36.tar.gz
qemu-4ed26e19d90bf5a4ea5662118ae5a2af46e61d36.tar.bz2
keymap: pass full keyboard state to keysym2scancode
Pass the keyboard state tracker handle down to keysym2scancode(), so the code can fully inspect the keyboard state as needed. No functional change. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-id: 20190122092814.14919-8-kraxel@redhat.com
Diffstat (limited to 'ui/keymaps.h')
-rw-r--r--ui/keymaps.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/keymaps.h b/ui/keymaps.h
index 4e9c87f..d8652b8 100644
--- a/ui/keymaps.h
+++ b/ui/keymaps.h
@@ -26,6 +26,7 @@
#define QEMU_KEYMAPS_H
#include "qemu-common.h"
+#include "ui/kbd-state.h"
typedef struct {
const char* name;
@@ -55,7 +56,7 @@ typedef struct kbd_layout_t kbd_layout_t;
kbd_layout_t *init_keyboard_layout(const name2keysym_t *table,
const char *language, Error **errp);
int keysym2scancode(kbd_layout_t *k, int keysym,
- bool shift, bool altgr, bool ctrl);
+ QKbdState *kbd);
int keycode_is_keypad(kbd_layout_t *k, int keycode);
int keysym_is_numlock(kbd_layout_t *k, int keysym);