aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus/input.cpp')
-rwxr-xr-xengines/pegasus/input.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/pegasus/input.cpp b/engines/pegasus/input.cpp
index 76f5afae63..08bc22bafd 100755
--- a/engines/pegasus/input.cpp
+++ b/engines/pegasus/input.cpp
@@ -43,6 +43,7 @@ void InputDevice::getInput(Input &input, const tInputBits filter) {
// TODO: Save/Load keys
tInputBits currentBits = 0;
+ bool consoleRequested = false;
Common::Event event;
while (g_system->getEventManager()->pollEvent(event)) {
@@ -94,6 +95,10 @@ void InputDevice::getInput(Input &input, const tInputBits filter) {
case Common::KEYCODE_DELETE:
currentBits |= (kRawButtonDown << kRightFireButtonShift);
break;
+ case Common::KEYCODE_d:
+ if (event.kbd.flags & Common::KBD_CTRL) // Console!
+ consoleRequested = true;
+ break;
default:
break;
}
@@ -119,6 +124,9 @@ void InputDevice::getInput(Input &input, const tInputBits filter) {
// Update the last bits
_lastRawBits = currentBits;
+
+ // Set the console to be requested or not
+ input.setConsoleRequested(consoleRequested);
}
// Wait until the input device stops returning input allowed by filter...