aboutsummaryrefslogtreecommitdiff
path: root/hw/char/escc.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-04-29 13:19:32 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-05-16 08:30:12 +0200
commit97256073b1a51ed0deb0bac7d4b5d88a90cc2939 (patch)
tree59d12c17001447409d8ce104345a896a98564420 /hw/char/escc.c
parent2ada510698acb68399f4b356386c2807cbac3b60 (diff)
input: sparc32 kbd: fix some key mappings
Reported-by: Olivier Danet <odanet@caramail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/char/escc.c')
-rw-r--r--hw/char/escc.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/hw/char/escc.c b/hw/char/escc.c
index 823fe8dc68..d7dff70b06 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,