fix build buster for SDL2 missing builds

This commit is contained in:
Brad Hefta-Gaub 2015-10-29 11:26:11 -07:00
parent 3d37a1d249
commit 851460b2bd

View file

@ -75,19 +75,23 @@ void SDL2Manager::deinit() {
}
void SDL2Manager::activate() {
#ifdef HAVE_SDL2
auto userInputMapper = DependencyManager::get<controller::UserInputMapper>();
for (auto joystick : _openJoysticks) {
userInputMapper->registerDevice(joystick);
emit joystickAdded(joystick.get());
}
#endif
}
void SDL2Manager::deactivate() {
#ifdef HAVE_SDL2
auto userInputMapper = DependencyManager::get<controller::UserInputMapper>();
for (auto joystick : _openJoysticks) {
userInputMapper->removeDevice(joystick->getDeviceID());
emit joystickRemoved(joystick.get());
}
#endif
}