mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 03:13:09 +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* JoystickScriptingInterface::joystickWithName(const QString& name) {
|
||||||
Joystick* matchingJoystick = _openJoysticks.value(name);
|
Joystick* matchingJoystick = _openJoysticks.value(name);
|
||||||
|
#ifdef HAVE_SDL
|
||||||
if (!matchingJoystick) {
|
if (!matchingJoystick) {
|
||||||
// we haven't opened a joystick with this name yet - enumerate our SDL devices and see if it exists
|
// we haven't opened a joystick with this name yet - enumerate our SDL devices and see if it exists
|
||||||
int joystickCount = SDL_NumJoysticks();
|
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.";
|
qDebug() << "No matching joystick found with name" << name << "- returning NULL pointer.";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return matchingJoystick;
|
return matchingJoystick;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue