SCI: Fix backend events treated as keyboard events
Prevents backend events such as EVENT_SCREEN_CHANGED from being misinterpreted as SCI keyboard events
This commit is contained in:
parent
8b929a584f
commit
a2cc90bf9b
1 changed files with 5 additions and 0 deletions
|
@ -253,6 +253,11 @@ SciEvent EventManager::getScummVMEvent() {
|
|||
}
|
||||
}
|
||||
|
||||
// Handle keyboard events for the rest of the function
|
||||
if (ev.type != Common::EVENT_KEYDOWN && ev.type != Common::EVENT_KEYUP) {
|
||||
return noEvent;
|
||||
}
|
||||
|
||||
// Check for Control-Shift-D (debug console)
|
||||
if (ev.type == Common::EVENT_KEYDOWN && ev.kbd.hasFlags(Common::KBD_CTRL | Common::KBD_SHIFT) && ev.kbd.keycode == Common::KEYCODE_d) {
|
||||
// Open debug console
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue