From 2548e88a53e9a4cebab8ca77eb696ae1e85aadb9 Mon Sep 17 00:00:00 2001 From: Clay Smith Date: Thu, 26 Jan 2023 17:30:38 -0600 Subject: almost everything works but PS4 and Wii Nunchuck? --- global_defs.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'global_defs.h') 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 //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 }; -- cgit v1.2.1