diff options
author | Clay Smith <claysmith158@gmail.com> | 2023-01-26 17:30:38 -0600 |
---|---|---|
committer | Clay Smith <claysmith158@gmail.com> | 2023-01-26 17:30:38 -0600 |
commit | 2548e88a53e9a4cebab8ca77eb696ae1e85aadb9 (patch) | |
tree | 0aa56fb019da1c845ca210ce87326ab860e2be8a /global_defs.h | |
parent | d83a049ca7556ebc0a03f7f66dd7f89b0b2a72e5 (diff) |
almost everything works but PS4 and Wii Nunchuck?
Diffstat (limited to 'global_defs.h')
-rw-r--r-- | global_defs.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/global_defs.h b/global_defs.h index 17269c9..248da05 100644 --- a/global_defs.h +++ b/global_defs.h @@ -7,8 +7,9 @@ #include <stdint.h> //magic numbers -#define NUM_EVENTS 12 //steam + xbox + ps4 * 6 + wii * 3 + mouse -#define NUM_EVENTS_WII_PS4 3 +#define NUM_EVENTS 14 //steam + xbox + ps4 * 6 + wii * 4 + mouse +#define NUM_EVENTS_PS4 3 +#define NUM_EVENTS_WII 4 #define PS4_BT_TOUCH_BIT 32 #define PS4_BT_GYRO_BIT 64 @@ -23,10 +24,11 @@ #define NINTENDO_GYRO_BIT 256 #define NINTENDO_IR_BIT 512 #define NINTENDO_BUTTONS_BIT 1024 -#define NINTENDO_ALL_BITS 1792 // 1024 + 512 + 256 +#define NINTENDO_NUNCHUCK_BIT 2048 +#define NINTENDO_ALL_BITS 3840 // 2048 + 1024 + 512 + 256 enum { - IR = 0, TOUCHPAD = 0, GYRO = 1, BUTTONS = 2 + IR = 0, TOUCHPAD = 0, GYRO = 1, BUTTONS = 2, NUNCHUCK = 3 }; enum { @@ -34,6 +36,7 @@ enum { XBOX_360 = 1, PS4_WIRED_GYRO = 2, PS4_WIRED_BUTTONS = 3, PS4_WIRED_TOUCH = 4, PS4_BT_GYRO = 5, PS4_BT_BUTTONS = 6, PS4_BT_TOUCH = 7, - WII_GYRO = 8, WII_IR = 9, WII_BUTTONS = 10, MOUSE = 11 + WII_GYRO = 8, WII_IR = 9, WII_BUTTONS = 10, WII_NUNCHUCK = 11, + MOUSE = 12 }; |