Merge pull request #657 from lordhoto/scumm-alt-x
ALL: Handle Alt-x internally in SCUMM.
This commit is contained in:
commit
68ff933206
4 changed files with 17 additions and 8 deletions
|
@ -545,8 +545,8 @@ bool SdlEventSource::handleKeyDown(SDL_Event &ev, Common::Event &event) {
|
|||
return true;
|
||||
}
|
||||
#else
|
||||
// Ctrl-z and Alt-X quit
|
||||
if ((event.kbd.hasFlags(Common::KBD_CTRL) && ev.key.keysym.sym == 'z') || (event.kbd.hasFlags(Common::KBD_ALT) && ev.key.keysym.sym == 'x')) {
|
||||
// Ctrl-z quits
|
||||
if ((event.kbd.hasFlags(Common::KBD_CTRL) && ev.key.keysym.sym == 'z')) {
|
||||
event.type = Common::EVENT_QUIT;
|
||||
return true;
|
||||
}
|
||||
|
@ -603,11 +603,6 @@ bool SdlEventSource::handleKeyUp(SDL_Event &ev, Common::Event &event) {
|
|||
#if defined(MACOSX)
|
||||
if ((mod & KMOD_META) && ev.key.keysym.sym == 'q')
|
||||
return false; // On Macintosh, Cmd-Q quits
|
||||
#elif defined(POSIX)
|
||||
// Control Q has already been handled above
|
||||
#else
|
||||
if ((mod & KMOD_ALT) && ev.key.keysym.sym == 'x')
|
||||
return false; // Alt-x quit
|
||||
#endif
|
||||
|
||||
// If we reached here, this isn't an event handled by handleKeyDown(), thus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue