From 3ab24d6ea56b90ff23fb3c75eab67bbef6401fbb Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 24 Sep 2014 11:59:44 -0700 Subject: [PATCH] add a missing HAVE_SDL block --- interface/src/scripting/JoystickScriptingInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/src/scripting/JoystickScriptingInterface.cpp b/interface/src/scripting/JoystickScriptingInterface.cpp index 8911f292b5..1e35c11f61 100644 --- a/interface/src/scripting/JoystickScriptingInterface.cpp +++ b/interface/src/scripting/JoystickScriptingInterface.cpp @@ -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; }