From 99eb8762c4cd46357288c2d47ec719c48ada4d80 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 26 Apr 2012 13:54:12 -0400 Subject: PEGASUS: Allow control for the easter egg key as well Fixes issues where the OS can intercept the key --- engines/pegasus/input.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } } -- cgit v1.2.3