From: <au...@us...> - 2011-05-13 00:03:18
|
Revision: 8554 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=8554&view=rev Author: auria Date: 2011-05-13 00:03:12 +0000 (Fri, 13 May 2011) Log Message: ----------- Allow escaping from gamepad visualisation screen Modified Paths: -------------- main/trunk/src/main.cpp Modified: main/trunk/src/main.cpp =================================================================== --- main/trunk/src/main.cpp 2011-05-13 00:02:23 UTC (rev 8553) +++ main/trunk/src/main.cpp 2011-05-13 00:03:12 UTC (rev 8554) @@ -133,6 +133,20 @@ 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; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |