Don't use in-game keys for menus, some people may setup their gamepad to use a key that's pressed by default for acceleration
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
b0270f69d6
commit
27cfa16820
@ -438,16 +438,6 @@ void InputManager::dispatchInput(Input::InputType type, int deviceID,
|
||||
value, m_mode,
|
||||
&player, &action);
|
||||
|
||||
// if didn't find a _menu_ action, try finding a corresponding game action
|
||||
// as fallback (the GUI can handle them too)
|
||||
if (!action_found && m_mode == MENU)
|
||||
{
|
||||
action_found = m_device_manager->translateInput(type, deviceID,
|
||||
button, axisDirection,
|
||||
value, INGAME, &player,
|
||||
&action);
|
||||
}
|
||||
|
||||
// in menus, some keyboard keys are standard (before each player selected
|
||||
// his device). So if a key could not be mapped to any known binding,
|
||||
// fall back to check the defaults.
|
||||
|
Loading…
Reference in New Issue
Block a user