qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys
@ 2016-03-02 15:52 Programmingkid
  2016-03-02 16:12 ` Gerd Hoffmann
  2016-03-02 16:15 ` Eric Blake
  0 siblings, 2 replies; 10+ messages in thread
From: Programmingkid @ 2016-03-02 15:52 UTC (permalink / raw)
  To: Peter Maydell, Gerd Hoffmann; +Cc: qemu-devel qemu-devel

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 <programmingkidx@gmail.com>

---
 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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-03-03 18:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-02 15:52 [Qemu-devel] [PATCH] input-keymap.c: Add keypad equal and power keys Programmingkid
2016-03-02 16:12 ` Gerd Hoffmann
2016-03-02 16:29   ` Programmingkid
2016-03-03 10:01     ` Gerd Hoffmann
2016-03-03 15:15       ` Programmingkid
2016-03-03 15:49         ` Gerd Hoffmann
2016-03-03 17:55           ` Programmingkid
2016-03-03 18:06             ` Peter Maydell
2016-03-02 16:15 ` Eric Blake
2016-03-02 16:26   ` Programmingkid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).