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:
D G Turner 2014-04-16 13:17:32 +01:00
parent 8282298556
commit b8aaac27ba

View File

@ -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
}