diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-05-21 13:49:59 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-05-26 08:42:42 +0200 |
commit | 2386a907301134d344649426e6928614567d1235 (patch) | |
tree | ce4bfb9e23d61cdf3b9935a5cd71018240991d07 /ui | |
parent | 11c7fa7fa602704d9673ea59c575f58777008d93 (diff) | |
download | hqemu-2386a907301134d344649426e6928614567d1235.zip hqemu-2386a907301134d344649426e6928614567d1235.tar.gz |
input: add name to input_event_key_number
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/input.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -94,7 +94,7 @@ static void qemu_input_transform_abs_rotate(InputEvent *evt) static void qemu_input_event_trace(QemuConsole *src, InputEvent *evt) { const char *name; - int idx = -1; + int qcode, idx = -1; if (src) { idx = qemu_console_get_index(src); @@ -103,8 +103,10 @@ static void qemu_input_event_trace(QemuConsole *src, InputEvent *evt) case INPUT_EVENT_KIND_KEY: switch (evt->key->key->kind) { case KEY_VALUE_KIND_NUMBER: + qcode = qemu_input_key_number_to_qcode(evt->key->key->number); + name = QKeyCode_lookup[qcode]; trace_input_event_key_number(idx, evt->key->key->number, - evt->key->down); + name, evt->key->down); break; case KEY_VALUE_KIND_QCODE: name = QKeyCode_lookup[evt->key->key->qcode]; |