[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20851] trunk/blender/source/gameengine/ GameLogic/Joystick/SCA_Joystick.cpp: allow building without SDL
Campbell Barton
ideasman42 at gmail.com
Sat Jun 13 13:28:30 CEST 2009
Revision: 20851
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20851
Author: campbellbarton
Date: 2009-06-13 13:28:29 +0200 (Sat, 13 Jun 2009)
Log Message:
-----------
allow building without SDL
Modified Paths:
--------------
trunk/blender/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
Modified: trunk/blender/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
===================================================================
--- trunk/blender/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp 2009-06-13 11:21:02 UTC (rev 20850)
+++ trunk/blender/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp 2009-06-13 11:28:29 UTC (rev 20851)
@@ -158,12 +158,13 @@
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;
}
More information about the Bf-blender-cvs
mailing list