diff options
author | Matthew Hoops | 2012-04-26 13:54:12 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-04-26 13:54:12 -0400 |
commit | 99eb8762c4cd46357288c2d47ec719c48ada4d80 (patch) | |
tree | 851494c5b272362ac2c80cd1a71743eab9c08509 /engines/pegasus | |
parent | 9971e74c4c481f99401212b469e9c79185fa6e70 (diff) | |
download | scummvm-rg350-99eb8762c4cd46357288c2d47ec719c48ada4d80.tar.gz scummvm-rg350-99eb8762c4cd46357288c2d47ec719c48ada4d80.tar.bz2 scummvm-rg350-99eb8762c4cd46357288c2d47ec719c48ada4d80.zip |
PEGASUS: Allow control for the easter egg key as well
Fixes issues where the OS can intercept the key
Diffstat (limited to 'engines/pegasus')
-rw-r--r-- | engines/pegasus/input.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/pegasus/input.cpp b/engines/pegasus/input.cpp index 0250ecf99a..492b02b85e 100644 --- a/engines/pegasus/input.cpp +++ b/engines/pegasus/input.cpp @@ -120,7 +120,9 @@ void InputDeviceManager::getInput(Input &input, const InputBits filter) { // trying to do alt+enter or something). Since it's only used // as an easter egg, I'm just going to handle it as a separate // bool value. - if (event.kbd.flags & Common::KBD_ALT) + // WORKAROUND x2: I'm also accepting control here since an + // alt+click is often intercepted by the OS. + if (event.kbd.flags & (Common::KBD_ALT|Common::KBD_CTRL)) altDown = true; } } |