summaryrefslogtreecommitdiff
path: root/src/joystick.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/joystick.h')
-rw-r--r--src/joystick.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/joystick.h b/src/joystick.h
index 6a8a1a1b9..16f4b9bd3 100644
--- a/src/joystick.h
+++ b/src/joystick.h
@@ -25,6 +25,9 @@
#include <SDL.h>
+#include <string>
+#include <vector>
+
class Joystick
{
public:
@@ -109,6 +112,9 @@ class Joystick
int getNumber() const
{ return mNumber; }
+ void setUseInactive(bool b)
+ { mUseInactive = b; }
+
protected:
unsigned char mDirection;
bool mButtons[MAX_BUTTONS];
@@ -122,6 +128,7 @@ class Joystick
int mNumber;
bool mCalibrated;
int mButtonsNumber;
+ bool mUseInactive;
/**
* Is joystick support enabled.