summaryrefslogtreecommitdiff
path: root/global_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'global_defs.h')
-rw-r--r--global_defs.h13
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
};