Fix gamepad navigation in menus

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-04-19 00:01:44 +00:00
parent f65a5c3d83
commit ffd1432fd0

View File

@ -247,7 +247,7 @@ bool GamePadDevice::processAndMapInput(Input::InputType type, const int id,
{
success = m_configuration->getGameAction(type, id, value, action);
}
else if (value > Input::MAX_VALUE/2)
else if (abs(value) > Input::MAX_VALUE/2)
{
// bindings can only be accessed in game and menu modes
assert(mode == InputManager::MENU);