History

add a missing HAVE_SDL block

Stephen Birarda committed 12 years ago

Commit 3ab24d61 parent 875c1db1 file · +2 −0Browse files

Showing the changes to interface/src/scripting/JoystickScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

interface/src/scripting/JoystickScriptingInterface.cpp+2−0
@@ -62,6 +62,7 @@ void JoystickScriptingInterface::update() { · 61 unmodified lines
6262
6363 Joystick* JoystickScriptingInterface::joystickWithName(const QString& name) {
6464 Joystick* matchingJoystick = _openJoysticks.value(name);
65+#ifdef HAVE_SDL
6566 if (!matchingJoystick) {
6667 // we haven't opened a joystick with this name yet - enumerate our SDL devices and see if it exists
6768 int joystickCount = SDL_NumJoysticks();
@@ -75,6 +76,7 @@ Joystick* JoystickScriptingInterface::joystickWithName(const QString& name) { · 7 unmodified lines
7576
7677 qDebug() << "No matching joystick found with name" << name << "- returning NULL pointer.";
7778 }
79+#endif
7880
7981 return matchingJoystick;
8082 }