shithub: choc

Download patch

ref: 16ae1b6ced98eb72cf6c827e6ec2fb639b33716e
parent: 591422453f84b941b6c77e0e9ebf0c3750406d3e
parent: 45da1a18db9518cbf4489a370ba4c3d6f2d86e1e
author: Simon Howard <[email protected]>
date: Sat Jan 6 17:32:19 EST 2018

Merge pull request #957 from BlooD2oo1/sdl2-branch

Make 0 and 5 keys on the numeric keypad bindable for left handed users

--- a/src/doomkeys.h
+++ b/src/doomkeys.h
@@ -70,12 +70,12 @@
 #define KEY_INS         (0x80+0x52)
 #define KEY_DEL         (0x80+0x53)
 
-#define KEYP_0          0
+#define KEYP_0          KEY_INS
 #define KEYP_1          KEY_END
 #define KEYP_2          KEY_DOWNARROW
 #define KEYP_3          KEY_PGDN
 #define KEYP_4          KEY_LEFTARROW
-#define KEYP_5          '5'
+#define KEYP_5          (0x80+0x4c)
 #define KEYP_6          KEY_RIGHTARROW
 #define KEYP_7          KEY_HOME
 #define KEYP_8          KEY_UPARROW
@@ -134,7 +134,8 @@
     { KEY_LEFTARROW,  "LEFT" },     { KEY_RIGHTARROW, "RIGHT" },     \
     { KEY_RALT,       "ALT" },      { KEY_LALT,       "ALT" },       \
     { KEY_RSHIFT,     "SHIFT" },    { KEY_CAPSLOCK,   "CAPS" },      \
-    { KEY_RCTRL,      "CTRL" },     { ' ',            "SPACE" },     \
+    { KEY_RCTRL,      "CTRL" },     { KEYP_5,         "NUM5" },      \
+    { ' ',            "SPACE" },                                     \
     { 'a', "A" },   { 'b', "B" },   { 'c', "C" },   { 'd', "D" },    \
     { 'e', "E" },   { 'f', "F" },   { 'g', "G" },   { 'h', "H" },    \
     { 'i', "I" },   { 'j', "J" },   { 'k', "K" },   { 'l', "L" },    \