From 473114c210b8e0ca9de372e276bce2bd875a8f49 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Wed, 6 Jan 2010 07:48:10 +0000 Subject: [PATCH] Add hats --- mocks/Prefs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mocks/Prefs.h b/mocks/Prefs.h index 3d807e7..59b7476 100644 --- a/mocks/Prefs.h +++ b/mocks/Prefs.h @@ -19,6 +19,7 @@ enum /* Insanely high, but the Wii has insanely many of these */ #define MAX_JOYSTICK_AXES 32 #define MAX_JOYSTICK_BUTTONS 32 +#define MAX_JOYSTICK_HATS 8 class Prefs { @@ -28,6 +29,7 @@ public: /* Set to NONE by default */ memset(this->JoystickAxes, 0, sizeof(this->JoystickAxes)); memset(this->JoystickButtons, 0, sizeof(this->JoystickButtons)); + memset(this->JoystickHats, 0, sizeof(this->JoystickHats)); strcpy(this->NetworkName, "Unset name"); strcpy(this->NetworkServer, "play.c64-network.org"); @@ -49,6 +51,7 @@ public: /* This is borrowed from UAE */ int JoystickAxes[2][MAX_JOYSTICK_AXES]; + int JoystickHats[2][MAX_JOYSTICK_HATS]; int JoystickButtons[2][MAX_JOYSTICK_BUTTONS]; };