Allow escaping from gamepad visualisation screen

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-05-13 00:03:12 +00:00
parent 61af0d7159
commit 1ad86ccf55

View File

@ -133,6 +133,20 @@ void gamepadVisualisation()
break;
}
case EET_KEY_INPUT_EVENT:
{
const SEvent::SKeyInput& evt = event.KeyInput;
if (evt.PressedDown)
{
if (evt.Key == KEY_RETURN || evt.Key == KEY_ESCAPE || evt.Key == KEY_SPACE)
{
exit(0);
}
}
}
default:
// don't care about others
break;