pressing 'rescue' on gamepad should behave the same as 'escape' on keyboard in menus

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3356 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-04-04 23:48:38 +00:00
parent f66430574c
commit 924d087c88

View File

@ -351,6 +351,8 @@ void InputManager::input(Input::InputType type, int id0, int id1, int id2,
evt.Key = irr::KEY_RIGHT;
else if(action == PA_LEFT)
evt.Key = irr::KEY_LEFT;
else if(action == PA_RESCUE)
evt.Key = irr::KEY_ESCAPE;
else
return; // only those bindings are accepted in menus for now.