mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 02:12:14 +00:00
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
@ -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…
Reference in New Issue
Block a user