fixed typo in code

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3564 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-05-31 01:31:37 +00:00
parent 1f7ec5ae58
commit 54c2514148

View File

@ -371,6 +371,8 @@ namespace StateManager
}
}
#define MAX_VALUE 32768
// -----------------------------------------------------------------------------
void gotSensedInput(Input* sensedInput)
{
@ -378,7 +380,8 @@ namespace StateManager
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;