Wrap code with {}. g++ dislikes new variables in switch/case if labels follow.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7137 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
a49c2f81e7
commit
47a7f77b33
@ -264,6 +264,7 @@ void InputManager::inputSensing(Input::InputType type, int deviceID, int button,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Input::IT_STICKMOTION:
|
case Input::IT_STICKMOTION:
|
||||||
|
{
|
||||||
std::cout << "%% storing new axis binding, value=" << value <<
|
std::cout << "%% storing new axis binding, value=" << value <<
|
||||||
" deviceID=" << deviceID << " button=" << button << " axisDirection=" <<
|
" deviceID=" << deviceID << " button=" << button << " axisDirection=" <<
|
||||||
(axisDirection == Input::AD_NEGATIVE ? "-" : "+") << "\n";
|
(axisDirection == Input::AD_NEGATIVE ? "-" : "+") << "\n";
|
||||||
@ -312,7 +313,8 @@ void InputManager::inputSensing(Input::InputType type, int deviceID, int button,
|
|||||||
OptionsScreenInput2::getInstance()->gotSensedInput(sensed_input);
|
OptionsScreenInput2::getInstance()->gotSensedInput(sensed_input);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case Input::IT_NONE:
|
case Input::IT_NONE:
|
||||||
case Input::IT_STICKHAT:
|
case Input::IT_STICKHAT:
|
||||||
case Input::IT_MOUSEMOTION:
|
case Input::IT_MOUSEMOTION:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user