Skip to contentSkip to conversation

Added keycodes for MS-Windows Keyboards

PATCH In review Erik Rull 1 participant 2 messages May 14, 2012 – May 15, 2012

lore
Share & tools
lore

Erik Rull

author
#0 lore raw

PATCH 1/1 Added keycodes for MS-Windows Keyboards

Keys for MS-Windows Keyboards (left / right Win Key, Context Key) were not working in SDL / VNC environments, this patch fixes it.

---
 ui/x_keymap.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
ui/x_keymap.c +3 -3
index b9b0944..4efac0d 100644
@@ -43,9 +43,9 @@ static const uint8_t x_keycode_to_pc_keycode[115] = {
    0xb5,      /* 112  Divide */
    0xb8,      /* 113  Alt-R  */
    0xc6,      /* 114  Break  */
-   0x0,         /* 115 */
-   0x0,         /* 116 */
-   0x0,         /* 117 */
+   0xdb,         /* 115 */
+   0xdc,         /* 116 */
+   0xdd,         /* 117 */
    0x0,         /* 118 */
    0x0,         /* 119 */
    0x0,         /* 120 */

--
1.7.2.5

author
#1 lore raw

Sorry, I forgot to CC the maintainer.

Quoted 29 lines · Erik Rull

Keys for MS-Windows Keyboards (left / right Win Key, Context Key) were not working in SDL / VNC environments, this patch fixes it.

---
ui/x_keymap.c | 6 +++---

1 files changed, 3 insertions(+), 3 deletions(-)
ui/x_keymap.c +0 -0
index b9b0944..4efac0d 100644
@@ -43,9 +43,9 @@ static const uint8_t x_keycode_to_pc_keycode[115] = {

0xb5, /* 112 Divide */
0xb8, /* 113 Alt-R */
0xc6, /* 114 Break */
- 0x0, /* 115 */
- 0x0, /* 116 */
- 0x0, /* 117 */
+ 0xdb, /* 115 */
+ 0xdc, /* 116 */
+ 0xdd, /* 117 */
0x0, /* 118 */
0x0, /* 119 */
0x0, /* 120 */
--
1.7.2.5