mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:24:43 +02:00
add a missing HAVE_SDL block
This commit is contained in:
parent
875c1dba72
commit
3ab24d6ea5
1 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,7 @@ void JoystickScriptingInterface::update() {
|
|||
|
||||
Joystick* JoystickScriptingInterface::joystickWithName(const QString& name) {
|
||||
Joystick* matchingJoystick = _openJoysticks.value(name);
|
||||
#ifdef HAVE_SDL
|
||||
if (!matchingJoystick) {
|
||||
// we haven't opened a joystick with this name yet - enumerate our SDL devices and see if it exists
|
||||
int joystickCount = SDL_NumJoysticks();
|
||||
|
@ -75,6 +76,7 @@ Joystick* JoystickScriptingInterface::joystickWithName(const QString& name) {
|
|||
|
||||
qDebug() << "No matching joystick found with name" << name << "- returning NULL pointer.";
|
||||
}
|
||||
#endif
|
||||
|
||||
return matchingJoystick;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue