[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys
From: |
Programmingkid |
Subject: |
[Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys |
Date: |
Wed, 2 Mar 2016 10:52:05 -0500 |
Add the keypad equals and power keys to the qcode_to_number array. These keys
are used on a Macintosh keyboard.
Signed-off-by: John Arbuckle <address@hidden>
---
ui/input-keymap.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ui/input-keymap.c b/ui/input-keymap.c
index fd2c09d..8cffe62 100644
--- a/ui/input-keymap.c
+++ b/ui/input-keymap.c
@@ -98,6 +98,7 @@ static const int qcode_to_number[] = {
[Q_KEY_CODE_KP_ENTER] = 0x9c,
[Q_KEY_CODE_KP_DECIMAL] = 0x53,
[Q_KEY_CODE_SYSRQ] = 0x54,
+ [Q_KEY_CODE_KP_EQUALS] = 0x55,
[Q_KEY_CODE_KP_0] = 0x52,
[Q_KEY_CODE_KP_1] = 0x4f,
@@ -132,7 +133,7 @@ static const int qcode_to_number[] = {
[Q_KEY_CODE_RO] = 0x73,
[Q_KEY_CODE_KP_COMMA] = 0x7e,
-
+ [Q_KEY_CODE_POWER] = 0x5e,
[Q_KEY_CODE__MAX] = 0,
};
--
1.7.5.4
- [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys,
Programmingkid <=
- Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys, Gerd Hoffmann, 2016/03/02
- Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys, Programmingkid, 2016/03/02
- Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys, Gerd Hoffmann, 2016/03/03
- Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys, Programmingkid, 2016/03/03
- Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys, Gerd Hoffmann, 2016/03/03
- Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys, Programmingkid, 2016/03/03
- Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys, Peter Maydell, 2016/03/03
Re: [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys, Eric Blake, 2016/03/02