From 45a5f1364a21abb89771654baf97b498bafe2b89 Mon Sep 17 00:00:00 2001 From: Sam Gondelman Date: Wed, 17 Jun 2015 11:56:44 -0700 Subject: [PATCH] fix compile issue if you don't have sdl2 --- interface/src/devices/SDL2Manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/src/devices/SDL2Manager.cpp b/interface/src/devices/SDL2Manager.cpp index 32408fce18..e039a80b0d 100644 --- a/interface/src/devices/SDL2Manager.cpp +++ b/interface/src/devices/SDL2Manager.cpp @@ -74,9 +74,11 @@ SDL2Manager* SDL2Manager::getInstance() { } void SDL2Manager::focusOutEvent() { +#ifdef HAVE_SDL2 for (auto joystick : _openJoysticks) { joystick->focusOutEvent(); } +#endif } void SDL2Manager::update() {