[Scummvm-cvs-logs] scummvm master -> 622e8d9da60d06894f979ddafbcd568710098ac3
clone2727
clone2727 at gmail.com
Sat Oct 1 05:56:24 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
622e8d9da6 BACKENDS: Set alt+f4 to be used for quitting on Windows
Commit: 622e8d9da60d06894f979ddafbcd568710098ac3
https://github.com/scummvm/scummvm/commit/622e8d9da60d06894f979ddafbcd568710098ac3
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2011-09-30T20:47:36-07:00
Commit Message:
BACKENDS: Set alt+f4 to be used for quitting on Windows
Changed paths:
backends/events/sdl/sdl-events.cpp
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp
index 9d235e9..b1e2667 100644
--- a/backends/events/sdl/sdl-events.cpp
+++ b/backends/events/sdl/sdl-events.cpp
@@ -436,6 +436,14 @@ bool SdlEventSource::handleKeyDown(SDL_Event &ev, Common::Event &event) {
event.type = Common::EVENT_QUIT;
return true;
}
+
+ #ifdef WIN32
+ // On Windows, also use the default Alt-F4 quit combination
+ if ((ev.key.keysym.mod & KMOD_ALT) && ev.key.keysym.sym == SDLK_F4) {
+ event.type = Common::EVENT_QUIT;
+ return true;
+ }
+ #endif
#endif
// Ctrl-u toggles mute
More information about the Scummvm-git-logs
mailing list