mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 19:30:41 +00:00
KEYMAPPER: Avoid blocking F8 events from engine when using keymapper.
This allows the keyboard mapper to be enabled without causing breakage to engines which use F8.
This commit is contained in:
parent
8282298556
commit
b8aaac27ba
@ -45,6 +45,9 @@ List<Event> DefaultEventMapper::mapEvent(const Event &ev, EventSource *source) {
|
||||
#ifdef ENABLE_KEYMAPPER
|
||||
else if (ev.kbd.keycode == KEYCODE_F8 && ev.kbd.hasFlags(0)) {
|
||||
mappedEvent.type = EVENT_KEYMAPPER_REMAP;
|
||||
|
||||
// Avoid blocking F8 events from engine.
|
||||
addDelayedEvent(100, ev);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user