VKEYBD: Switch hotkey from F7 to CTRL-F7 to reduce game conflicts.
Although this is harder for physically disabled users to trigger, they can now use the long middle mouse button press instead to trigger.
This commit is contained in:
parent
1448bbc77e
commit
8cf41943f6
2 changed files with 3 additions and 3 deletions
2
README
2
README
|
@ -1268,7 +1268,7 @@ other games.
|
||||||
instead, or a multiple thereof
|
instead, or a multiple thereof
|
||||||
Alt-Enter - Toggles full screen/windowed
|
Alt-Enter - Toggles full screen/windowed
|
||||||
Alt-s - Make a screenshot (SDL backend only)
|
Alt-s - Make a screenshot (SDL backend only)
|
||||||
F7 - Open virtual keyboard (if enabled)
|
Ctrl-F7 - Open virtual keyboard (if enabled)
|
||||||
F8 - Open key remapper dialog (if enabled)
|
F8 - Open key remapper dialog (if enabled)
|
||||||
|
|
||||||
SCUMM:
|
SCUMM:
|
||||||
|
|
|
@ -57,10 +57,10 @@ List<Event> DefaultEventMapper::mapEvent(const Event &ev, EventSource *source) {
|
||||||
mappedEvent.type = EVENT_MAINMENU;
|
mappedEvent.type = EVENT_MAINMENU;
|
||||||
}
|
}
|
||||||
#ifdef ENABLE_VKEYBD
|
#ifdef ENABLE_VKEYBD
|
||||||
else if (ev.kbd.keycode == KEYCODE_F7 && ev.kbd.hasFlags(0)) {
|
else if (ev.kbd.hasFlags(KBD_CTRL) && ev.kbd.keycode == KEYCODE_F7) {
|
||||||
mappedEvent.type = EVENT_VIRTUAL_KEYBOARD;
|
mappedEvent.type = EVENT_VIRTUAL_KEYBOARD;
|
||||||
|
|
||||||
// Avoid blocking F7 events from engine.
|
// Avoid blocking CTRL-F7 events from engine.
|
||||||
addDelayedEvent(100, ev);
|
addDelayedEvent(100, ev);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue