diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-08 20:02:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-08 20:02:35 +0300 |
commit | 49a7a62cae6ff0e5d1441f5800250b0e273800fa (patch) | |
tree | ca42ba34451f906671333619b36c4283574045b3 /src/input/joystick.cpp | |
parent | f1e48fffe3c224ee81cdc1f85dbd0179b202d457 (diff) | |
download | manaplus-49a7a62cae6ff0e5d1441f5800250b0e273800fa.tar.gz manaplus-49a7a62cae6ff0e5d1441f5800250b0e273800fa.tar.bz2 manaplus-49a7a62cae6ff0e5d1441f5800250b0e273800fa.tar.xz manaplus-49a7a62cae6ff0e5d1441f5800250b0e273800fa.zip |
Add comment about SDL_JoystickEventState.
Diffstat (limited to 'src/input/joystick.cpp')
-rw-r--r-- | src/input/joystick.cpp | 1 |
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); |