mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 04:35:16 +00:00
WAGE: Put debugger in tilde key `~'
This commit is contained in:
parent
0a5a722b02
commit
a25032eef9
@ -132,6 +132,8 @@ Common::Error WageEngine::run() {
|
||||
_shouldQuit = false;
|
||||
|
||||
while (!_shouldQuit) {
|
||||
_debugger->onFrame();
|
||||
|
||||
processEvents();
|
||||
|
||||
_gui->draw();
|
||||
@ -182,6 +184,11 @@ void WageEngine::processEvents() {
|
||||
break;
|
||||
|
||||
default:
|
||||
if (event.kbd.ascii == '~') {
|
||||
_debugger->attach();
|
||||
break;
|
||||
}
|
||||
|
||||
if (event.kbd.flags & (Common::KBD_ALT | Common::KBD_CTRL | Common::KBD_META)) {
|
||||
if (event.kbd.ascii >= 0x20 && event.kbd.ascii <= 0x7f) {
|
||||
_gui->processMenuShortCut(event.kbd.flags, event.kbd.ascii);
|
||||
|
Loading…
x
Reference in New Issue
Block a user