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:
parent
61af0d7159
commit
1ad86ccf55
14
src/main.cpp
14
src/main.cpp
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user