From c7debe1455f4e48e98ccb7af385dc1b1075f83e6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 13 Jun 2009 11:28:29 +0000 Subject: [PATCH] allow building without SDL --- source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp index d83179d4f80..6140702534c 100644 --- a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp +++ b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp @@ -158,12 +158,13 @@ bool SCA_Joystick::aAxisIsPositive(int axis_single) bool SCA_Joystick::aAnyButtonPressIsPositive(void) { +#ifndef DISABLE_SDL /* this is needed for the "all events" option * so we know if there are no buttons pressed */ for (int i=0; im_joystick, i)) return true; - +#endif return false; }