summaryrefslogtreecommitdiff
path: root/src/input/joystick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/joystick.cpp')
-rw-r--r--src/input/joystick.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/joystick.cpp b/src/input/joystick.cpp
index e01177059..1e53af5b1 100644
--- a/src/input/joystick.cpp
+++ b/src/input/joystick.cpp
@@ -72,6 +72,7 @@ Joystick::~Joystick()
void Joystick::init()
{
SDL_InitSubSystem(SDL_INIT_JOYSTICK);
+ // +++ possible to use SDL_EventState with different joystick features.
SDL_JoystickEventState(SDL_ENABLE);
joystickCount = SDL_NumJoysticks();
logger->log("%i joysticks/gamepads found", joystickCount);