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:
parent
1f7ec5ae58
commit
54c2514148
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user