summaryrefslogtreecommitdiff
path: root/src/input/joystick.cpp
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 /src/input/joystick.cpp
parentf1e48fffe3c224ee81cdc1f85dbd0179b202d457 (diff)
downloadmanaverse-49a7a62cae6ff0e5d1441f5800250b0e273800fa.tar.gz
manaverse-49a7a62cae6ff0e5d1441f5800250b0e273800fa.tar.bz2
manaverse-49a7a62cae6ff0e5d1441f5800250b0e273800fa.tar.xz
manaverse-49a7a62cae6ff0e5d1441f5800250b0e273800fa.zip
Add comment about SDL_JoystickEventState.
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);