summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-08 20:02:35 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-08 20:02:35 +0300
commit49a7a62cae6ff0e5d1441f5800250b0e273800fa (patch)
treeca42ba34451f906671333619b36c4283574045b3
parentf1e48fffe3c224ee81cdc1f85dbd0179b202d457 (diff)
downloadmv-49a7a62cae6ff0e5d1441f5800250b0e273800fa.tar.gz
mv-49a7a62cae6ff0e5d1441f5800250b0e273800fa.tar.bz2
mv-49a7a62cae6ff0e5d1441f5800250b0e273800fa.tar.xz
mv-49a7a62cae6ff0e5d1441f5800250b0e273800fa.zip
Add comment about SDL_JoystickEventState.
-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);