Fixed glitch that appeared in the new input configuration screen (I actually fail to see why it worked before)

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2010-05-03 17:19:23 +00:00
parent a5a8b3ec87
commit 0aef68f6ba

View File

@@ -212,7 +212,7 @@ void InputManager::inputSensing(Input::InputType type, int deviceID, int btnID,
m_sensed_input->btnID = btnID;
m_sensed_input->axisDirection = axisDirection;
if (type == Input::IT_KEYBOARD)
if (type == Input::IT_KEYBOARD && value > Input::MAX_VALUE/2)
{
OptionsScreenInput2::getInstance()->gotSensedInput(m_sensed_input);
return;