allow building without SDL

This commit is contained in:
Campbell Barton
2009-06-13 11:28:29 +00:00
parent 2f1e118c30
commit c7debe1455

View File

@@ -158,12 +158,13 @@ bool SCA_Joystick::aAxisIsPositive(int axis_single)
bool SCA_Joystick::aAnyButtonPressIsPositive(void) bool SCA_Joystick::aAnyButtonPressIsPositive(void)
{ {
#ifndef DISABLE_SDL
/* this is needed for the "all events" option /* this is needed for the "all events" option
* so we know if there are no buttons pressed */ * so we know if there are no buttons pressed */
for (int i=0; i<m_buttonmax; i++) for (int i=0; i<m_buttonmax; i++)
if (SDL_JoystickGetButton(m_private->m_joystick, i)) if (SDL_JoystickGetButton(m_private->m_joystick, i))
return true; return true;
#endif
return false; return false;
} }