qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH v2 09/10] input: sparc32 kbd: fix some key mappings
Date: Wed,  7 May 2014 13:06:48 +0200	[thread overview]
Message-ID: <1399460809-15975-10-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1399460809-15975-1-git-send-email-kraxel@redhat.com>

Reported-by: Olivier Danet <odanet@caramail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/char/escc.c | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/hw/char/escc.c b/hw/char/escc.c
index 823fe8d..d7dff70 100644
--- a/hw/char/escc.c
+++ b/hw/char/escc.c
@@ -790,7 +790,7 @@ static const uint8_t qcode_to_keycode[Q_KEY_CODE_MAX] = {
     [Q_KEY_CODE_F10]           = 7,
     [Q_KEY_CODE_NUM_LOCK]      = 98,
     [Q_KEY_CODE_SCROLL_LOCK]   = 23,
-    [Q_KEY_CODE_KP_DIVIDE]     = 109,
+    [Q_KEY_CODE_KP_DIVIDE]     = 46,
     [Q_KEY_CODE_KP_MULTIPLY]   = 47,
     [Q_KEY_CODE_KP_SUBTRACT]   = 71,
     [Q_KEY_CODE_KP_ADD]        = 125,
@@ -809,31 +809,33 @@ static const uint8_t qcode_to_keycode[Q_KEY_CODE_MAX] = {
     [Q_KEY_CODE_LESS]          = 124,
     [Q_KEY_CODE_F11]           = 9,
     [Q_KEY_CODE_F12]           = 11,
-    [Q_KEY_CODE_HOME]          = 68,
-    [Q_KEY_CODE_PGUP]          = 70,
-    [Q_KEY_CODE_PGDN]          = 114,
-    [Q_KEY_CODE_END]           = 112,
-    [Q_KEY_CODE_LEFT]          = 91,
-    [Q_KEY_CODE_UP]            = 69,
-    [Q_KEY_CODE_DOWN]          = 113,
-    [Q_KEY_CODE_RIGHT]         = 93,
-    [Q_KEY_CODE_INSERT]        = 94,
-    [Q_KEY_CODE_DELETE]        = 50,
+    [Q_KEY_CODE_HOME]          = 52,
+    [Q_KEY_CODE_PGUP]          = 96,
+    [Q_KEY_CODE_PGDN]          = 123,
+    [Q_KEY_CODE_END]           = 74,
+    [Q_KEY_CODE_LEFT]          = 24,
+    [Q_KEY_CODE_UP]            = 20,
+    [Q_KEY_CODE_DOWN]          = 27,
+    [Q_KEY_CODE_RIGHT]         = 28,
+    [Q_KEY_CODE_INSERT]        = 44,
+    [Q_KEY_CODE_DELETE]        = 66,
     [Q_KEY_CODE_STOP]          = 1,
     [Q_KEY_CODE_AGAIN]         = 3,
     [Q_KEY_CODE_PROPS]         = 25,
     [Q_KEY_CODE_UNDO]          = 26,
     [Q_KEY_CODE_FRONT]         = 49,
-    [Q_KEY_CODE_COPY]          = 52,
+    [Q_KEY_CODE_COPY]          = 51,
     [Q_KEY_CODE_OPEN]          = 72,
     [Q_KEY_CODE_PASTE]         = 73,
-    [Q_KEY_CODE_FIND]          = 97,
-    [Q_KEY_CODE_CUT]           = 99,
+    [Q_KEY_CODE_FIND]          = 95,
+    [Q_KEY_CODE_CUT]           = 97,
     [Q_KEY_CODE_LF]            = 111,
     [Q_KEY_CODE_HELP]          = 118,
     [Q_KEY_CODE_META_L]        = 120,
     [Q_KEY_CODE_META_R]        = 122,
     [Q_KEY_CODE_COMPOSE]       = 67,
+    [Q_KEY_CODE_PRINT]         = 22,
+    [Q_KEY_CODE_SYSRQ]         = 21,
 };
 
 static void sunkbd_handle_event(DeviceState *dev, QemuConsole *src,
-- 
1.8.3.1

  parent reply	other threads:[~2014-05-07 11:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07 11:06 [Qemu-devel] [PATCH v2 00/10] input layer rework continued Gerd Hoffmann
2014-05-07 11:06 ` [Qemu-devel] [PATCH v2 01/10] ps2: set ps/2 output buffer size as the same as kernel Gerd Hoffmann
2014-05-07 11:06 ` [Qemu-devel] [PATCH v2 02/10] input: key mapping helpers Gerd Hoffmann
2014-05-07 11:06 ` [Qemu-devel] [PATCH v2 03/10] input: add qemu_input_handler_deactivate Gerd Hoffmann
2014-05-07 11:06 ` [Qemu-devel] [PATCH v2 04/10] input: use KeyValue directly in sendkey monitor command Gerd Hoffmann
2014-05-07 11:06 ` [Qemu-devel] [PATCH v2 05/10] input: switch ps/2 kbd to new input api Gerd Hoffmann
2014-05-07 11:06 ` [Qemu-devel] [PATCH v2 06/10] input: switch ps/2 mouse " Gerd Hoffmann
2014-05-07 11:06 ` [Qemu-devel] [PATCH v2 07/10] input: switch sparc32 kbd " Gerd Hoffmann
2014-05-07 11:06 ` [Qemu-devel] [PATCH v2 08/10] input: remove sparc keymap hack Gerd Hoffmann
2014-05-07 11:06 ` Gerd Hoffmann [this message]
2014-05-07 11:06 ` [Qemu-devel] [PATCH v2 10/10] input: sparc32 kbd: claim en-us layout Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1399460809-15975-10-git-send-email-kraxel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).