Add more Windows and Linux keycodes
Signed-off-by: Laurent Carlier <lordheavym@gmail.com>
This commit is contained in:
parent
a56f2b2c6f
commit
92089fc98a
1 changed files with 25 additions and 3 deletions
|
|
@ -17,16 +17,38 @@
|
||||||
#define KEY_S 0x53
|
#define KEY_S 0x53
|
||||||
#define KEY_D 0x44
|
#define KEY_D 0x44
|
||||||
#define KEY_P 0x50
|
#define KEY_P 0x50
|
||||||
|
//
|
||||||
|
#define KEY_SPACE 0x20
|
||||||
|
#define KEY_KPADD 0x6B
|
||||||
|
#define KEY_KPSUB 0x6D
|
||||||
|
#define KEY_B 0x42
|
||||||
|
#define KEY_F 0x46
|
||||||
|
#define KEY_L 0x4C
|
||||||
|
#define KEY_N 0x4E
|
||||||
|
#define KEY_O 0x4F
|
||||||
|
#define KEY_T 0x54
|
||||||
|
//
|
||||||
#elif defined(__ANDROID__)
|
#elif defined(__ANDROID__)
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
#define KEY_ESCAPE 0x9
|
#define KEY_ESCAPE 0x9
|
||||||
|
#define KEY_F1 0x43
|
||||||
|
#define KEY_F2 0x44
|
||||||
#define KEY_W 0x19
|
#define KEY_W 0x19
|
||||||
#define KEY_A 0x26
|
#define KEY_A 0x26
|
||||||
#define KEY_S 0x27
|
#define KEY_S 0x27
|
||||||
#define KEY_D 0x28
|
#define KEY_D 0x28
|
||||||
#define KEY_P 0x21
|
#define KEY_P 0x21
|
||||||
#define KEY_F1 0x43
|
//
|
||||||
#define KEY_F2 0x44
|
#define KEY_SPACE 0x41
|
||||||
|
#define KEY_KPADD 0x56
|
||||||
|
#define KEY_KPSUB 0x52
|
||||||
|
#define KEY_B 0x38
|
||||||
|
#define KEY_F 0x29
|
||||||
|
#define KEY_L 0x2E
|
||||||
|
#define KEY_N 0x39
|
||||||
|
#define KEY_O 0x20
|
||||||
|
#define KEY_T 0x1C
|
||||||
|
//
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// todo: Android gamepad keycodes outside of define for now
|
// todo: Android gamepad keycodes outside of define for now
|
||||||
|
|
@ -36,4 +58,4 @@
|
||||||
#define GAMEPAD_BUTTON_Y 0x1003
|
#define GAMEPAD_BUTTON_Y 0x1003
|
||||||
#define GAMEPAD_BUTTON_L1 0x1004
|
#define GAMEPAD_BUTTON_L1 0x1004
|
||||||
#define GAMEPAD_BUTTON_R1 0x1005
|
#define GAMEPAD_BUTTON_R1 0x1005
|
||||||
#define GAMEPAD_BUTTON_START 0x1006
|
#define GAMEPAD_BUTTON_START 0x1006
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue