aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-09-15 15:31:39 +0000
committerTorbjörn Andersson2004-09-15 15:31:39 +0000
commitc5978208f7d0b5bcc685d174726ebdcb405f72dd (patch)
tree0f3ac399af11aa6c7209b6f073df75e814cf3c8e
parentefeb100c700af5d37e23dd43437cb5e581abc36b (diff)
downloadscummvm-rg350-c5978208f7d0b5bcc685d174726ebdcb405f72dd.tar.gz
scummvm-rg350-c5978208f7d0b5bcc685d174726ebdcb405f72dd.tar.bz2
scummvm-rg350-c5978208f7d0b5bcc685d174726ebdcb405f72dd.zip
Allow the BASS debugger to be invoked by the "standard" Ctrl-D / ~ / #
keys, since ` is bloody awkward on a Swedish keyboard. To keep joostp happy, ` will still work even if it currently doesn't for any of the other debug consoles in ScummVM. svn-id: r15128
-rw-r--r--sky/sky.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp
index 6f7e6eb914..5c1199dca6 100644
--- a/sky/sky.cpp
+++ b/sky/sky.cpp
@@ -176,7 +176,7 @@ void SkyEngine::doCheat(uint8 num) {
void SkyEngine::handleKey(void) {
- if (_key_pressed == '`') {
+ if (_key_pressed == '`' || _key_pressed == '~' || _key_pressed == '#') {
_debugger->attach();
}
@@ -459,6 +459,9 @@ void SkyEngine::delay(uint amount) {
_fastMode ^= 2;
break;
}
+ if (event.kbd.keycode == 'd') {
+ _debugger->attach();
+ }
}
// Make sure backspace works right (this fixes a small issue on OS X)