diff options
author | Paul Gilbert | 2012-05-22 00:29:27 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-22 00:29:27 +1000 |
commit | 6856fa2447195e8a65f6d5c7efa73543668d85b0 (patch) | |
tree | 1c59c37811cb65c98d8c3a8053f7dbae1610e5eb /engines/tony/input.cpp | |
parent | 3f00f51ef3239b02e01fed80c9205835b2d654e9 (diff) | |
download | scummvm-rg350-6856fa2447195e8a65f6d5c7efa73543668d85b0.tar.gz scummvm-rg350-6856fa2447195e8a65f6d5c7efa73543668d85b0.tar.bz2 scummvm-rg350-6856fa2447195e8a65f6d5c7efa73543668d85b0.zip |
TONY: Implemented ScummVM debugger, with an initial 'scene' command
Diffstat (limited to 'engines/tony/input.cpp')
-rw-r--r-- | engines/tony/input.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/tony/input.cpp b/engines/tony/input.cpp index 7663774ee4..c1104204b5 100644 --- a/engines/tony/input.cpp +++ b/engines/tony/input.cpp @@ -27,6 +27,7 @@ */ #include "tony/gfxengine.h" +#include "tony/tony.h" namespace Tony { @@ -79,7 +80,15 @@ void RMInput::Poll(void) { return; case Common::EVENT_KEYDOWN: - _keyDown[(int)_event.kbd.keycode] = true; + // Check for debugger + if ((_event.kbd.keycode == Common::KEYCODE_d) && (_event.kbd.flags & Common::KBD_CTRL)) { + // Attach to the debugger + _vm->_debugger->attach(); + _vm->_debugger->onFrame(); + } else { + // Flag the given key as being down + _keyDown[(int)_event.kbd.keycode] = true; + } return; case Common::EVENT_KEYUP: |