projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Initial support for "haptic" (force feedback) devices.
[supertux.git]
/
src
/
control
/
joystickkeyboardcontroller.cpp
diff --git
a/src/control/joystickkeyboardcontroller.cpp
b/src/control/joystickkeyboardcontroller.cpp
index
fa7d75f
..
784d186
100644
(file)
--- a/
src/control/joystickkeyboardcontroller.cpp
+++ b/
src/control/joystickkeyboardcontroller.cpp
@@
-160,6
+160,9
@@
JoystickKeyboardController::updateAvailableJoysticks()
max_joyhats = SDL_JoystickNumHats(joystick);
joysticks.push_back(joystick);
+
+ if (g_haptic_manager != NULL)
+ g_haptic_manager->addJoystick (joystick);
}
}