Don't register a keypress when a gamepad button is released in the menus
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
6a793fb708
commit
3e431d6895
@ -246,7 +246,7 @@ bool GamePadDevice::processAndMapInput(Input::InputType type, const int id,
|
||||
{
|
||||
success = m_configuration->getGameAction(type, id, value, action);
|
||||
}
|
||||
else
|
||||
else if (value > Input::MAX_VALUE/2)
|
||||
{
|
||||
// bindings can only be accessed in game and menu modes
|
||||
assert(mode == InputManager::MENU);
|
||||
|
Loading…
Reference in New Issue
Block a user