From: <au...@us...> - 2009-05-31 02:14:15
|
Revision: 3564 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=3564&view=rev Author: auria Date: 2009-05-31 01:31:37 +0000 (Sun, 31 May 2009) Log Message: ----------- fixed typo in code Modified Paths: -------------- main/branches/irrlicht/src/gui/options_screen.cpp Modified: main/branches/irrlicht/src/gui/options_screen.cpp =================================================================== --- main/branches/irrlicht/src/gui/options_screen.cpp 2009-05-31 01:27:21 UTC (rev 3563) +++ main/branches/irrlicht/src/gui/options_screen.cpp 2009-05-31 01:31:37 UTC (rev 3564) @@ -371,6 +371,8 @@ } } + #define MAX_VALUE 32768 + // ----------------------------------------------------------------------------- void gotSensedInput(Input* sensedInput) { @@ -378,7 +380,8 @@ assert( devices != NULL ); const bool keyboard = sensedInput->type == Input::IT_KEYBOARD && devices->getSelectionName() == "keyboard"; - const bool gamepad = sensedInput->type == (Input::IT_STICKMOTION || sensedInput->type == Input::IT_STICKBUTTON) && + const bool gamepad = sensedInput->type == (sensedInput->type == Input::IT_STICKMOTION || + sensedInput->type == Input::IT_STICKBUTTON) && devices->getSelectionName().find("gamepad") != std::string::npos; if(!keyboard && !gamepad) return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |