mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 07:34:02 +02:00
fix build buster for SDL2 missing builds
This commit is contained in:
parent
3d37a1d249
commit
851460b2bd
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue