diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-13 15:28:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-13 15:28:29 +0400 |
commit | c7debe1455f4e48e98ccb7af385dc1b1075f83e6 (patch) | |
tree | 0a9525ae4f1da6d56f325dc97181fadc8e749503 /source/gameengine/GameLogic | |
parent | 2f1e118c30946bd3117c59cd45f13d79e4b612ec (diff) |
allow building without SDL
Diffstat (limited to 'source/gameengine/GameLogic')
-rw-r--r-- | source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; i<m_buttonmax; i++) if (SDL_JoystickGetButton(m_private->m_joystick, i)) return true; - +#endif return false; } |