Added the number pad keys, and some missing main keyboard ones

This commit is contained in:
Justin Clift 2018-08-19 18:35:43 +01:00
parent 4e8abf93fb
commit 8e7ad6f4a3
2 changed files with 100 additions and 40 deletions

View file

@ -219,50 +219,80 @@ const (
KeyLeftShift = 340 KeyLeftShift = 340
KeyLeftControl = 341 KeyLeftControl = 341
KeyLeftAlt = 342 KeyLeftAlt = 342
KeyLeftSuper = 343
KeyRightShift = 344 KeyRightShift = 344
KeyRightControl = 345 KeyRightControl = 345
KeyRightAlt = 346 KeyRightAlt = 346
KeyGrave = 96 KeyRightSuper = 347
KeySlash = 47 KeyKBMenu = 348
KeyLeftBracket = 91
KeyBackSlash = 92 KeyBackSlash = 92
KeyRightBracket = 93
KeyGrave = 96
// Keyboard Number Pad Keys
KeyKPZero = 320
KeyKPOne = 321
KeyKPTwo = 322
KeyKPThree = 323
KeyKPFour = 324
KeyKPFive = 325
KeyKPSix = 326
KeyKPSeven = 327
KeyKPEight = 328
KeyKPNine = 329
KeyKPDecimal = 330
KeyKPDivide = 331
KeyKPMultiply = 332
KeyKPSubtract = 333
KeyKPAdd = 334
KeyKPEnter = 335
KeyKPEqual = 336
// Keyboard Alpha Numeric Keys // Keyboard Alpha Numeric Keys
KeyZero = 48 KeyApostrophe = 39
KeyOne = 49 KeyComma = 44
KeyTwo = 50 KeyMinus = 45
KeyThree = 51 KeyPeriod = 46
KeyFour = 52 KeySlash = 47
KeyFive = 53 KeyZero = 48
KeySix = 54 KeyOne = 49
KeySeven = 55 KeyTwo = 50
KeyEight = 56 KeyThree = 51
KeyNine = 57 KeyFour = 52
KeyA = 65 KeyFive = 53
KeyB = 66 KeySix = 54
KeyC = 67 KeySeven = 55
KeyD = 68 KeyEight = 56
KeyE = 69 KeyNine = 57
KeyF = 70 KeySemicolon = 59
KeyG = 71 KeyEqual = 61
KeyH = 72 KeyA = 65
KeyI = 73 KeyB = 66
KeyJ = 74 KeyC = 67
KeyK = 75 KeyD = 68
KeyL = 76 KeyE = 69
KeyM = 77 KeyF = 70
KeyN = 78 KeyG = 71
KeyO = 79 KeyH = 72
KeyP = 80 KeyI = 73
KeyQ = 81 KeyJ = 74
KeyR = 82 KeyK = 75
KeyS = 83 KeyL = 76
KeyT = 84 KeyM = 77
KeyU = 85 KeyN = 78
KeyV = 86 KeyO = 79
KeyW = 87 KeyP = 80
KeyX = 88 KeyQ = 81
KeyY = 89 KeyR = 82
KeyZ = 90 KeyS = 83
KeyT = 84
KeyU = 85
KeyV = 86
KeyW = 87
KeyX = 88
KeyY = 89
KeyZ = 90
// Android keys // Android keys
KeyBack = 4 KeyBack = 4

View file

@ -133,14 +133,42 @@
#define KEY_LEFT_SHIFT 340 #define KEY_LEFT_SHIFT 340
#define KEY_LEFT_CONTROL 341 #define KEY_LEFT_CONTROL 341
#define KEY_LEFT_ALT 342 #define KEY_LEFT_ALT 342
#define KEY_LEFT_SUPER 343
#define KEY_RIGHT_SHIFT 344 #define KEY_RIGHT_SHIFT 344
#define KEY_RIGHT_CONTROL 345 #define KEY_RIGHT_CONTROL 345
#define KEY_RIGHT_ALT 346 #define KEY_RIGHT_ALT 346
#define KEY_GRAVE 96 #define KEY_RIGHT_SUPER 347
#define KEY_SLASH 47 #define KEY_KB_MENU 348
#define KEY_LEFT_BRACKET 91
#define KEY_BACKSLASH 92 #define KEY_BACKSLASH 92
#define KEY_RIGHT_BRACKET 93
#define KEY_GRAVE 96
// Keyboard Number Pad Keys
#define KEY_KP_0 320
#define KEY_KP_1 321
#define KEY_KP_2 322
#define KEY_KP_3 323
#define KEY_KP_4 324
#define KEY_KP_5 325
#define KEY_KP_6 326
#define KEY_KP_7 327
#define KEY_KP_8 328
#define KEY_KP_9 329
#define KEY_KP_DECIMAL 330
#define KEY_KP_DIVIDE 331
#define KEY_KP_MULTIPLY 332
#define KEY_KP_SUBTRACT 333
#define KEY_KP_ADD 334
#define KEY_KP_ENTER 335
#define KEY_KP_EQUAL 336
// Keyboard Alpha Numeric Keys // Keyboard Alpha Numeric Keys
#define KEY_APOSTROPHE 39
#define KEY_COMMA 44
#define KEY_MINUS 45
#define KEY_PERIOD 46
#define KEY_SLASH 47
#define KEY_ZERO 48 #define KEY_ZERO 48
#define KEY_ONE 49 #define KEY_ONE 49
#define KEY_TWO 50 #define KEY_TWO 50
@ -151,6 +179,8 @@
#define KEY_SEVEN 55 #define KEY_SEVEN 55
#define KEY_EIGHT 56 #define KEY_EIGHT 56
#define KEY_NINE 57 #define KEY_NINE 57
#define KEY_SEMICOLON 59
#define KEY_EQUAL 61
#define KEY_A 65 #define KEY_A 65
#define KEY_B 66 #define KEY_B 66
#define KEY_C 67 #define KEY_C 67