KEYMAPPER: Added Toggle FullScreen action
This commit is contained in:
parent
e8ef680400
commit
da4b03139d
2 changed files with 6 additions and 0 deletions
|
@ -292,6 +292,9 @@ static void setupKeymapper(OSystem &system) {
|
||||||
act = new Action(globalMap, "REMP", _("Remap keys"), kKeyRemapActionType);
|
act = new Action(globalMap, "REMP", _("Remap keys"), kKeyRemapActionType);
|
||||||
act->addKeyEvent(KeyState(KEYCODE_F8, ASCII_F8, 0));
|
act->addKeyEvent(KeyState(KEYCODE_F8, ASCII_F8, 0));
|
||||||
|
|
||||||
|
act = new Action(globalMap, "FULS", _("Toggle FullScreen"), kKeyRemapActionType);
|
||||||
|
act->addKeyEvent(KeyState(KEYCODE_RETURN, ASCII_RETURN, KBD_ALT));
|
||||||
|
|
||||||
mapper->addGlobalKeymap(globalMap);
|
mapper->addGlobalKeymap(globalMap);
|
||||||
|
|
||||||
mapper->pushKeymap(kGlobalKeymapName, true);
|
mapper->pushKeymap(kGlobalKeymapName, true);
|
||||||
|
|
|
@ -124,6 +124,9 @@ void GuiManager::initKeymap() {
|
||||||
act = new Action(guiMap, "REMP", _("Remap keys"), kKeyRemapActionType);
|
act = new Action(guiMap, "REMP", _("Remap keys"), kKeyRemapActionType);
|
||||||
act->addKeyEvent(KeyState(KEYCODE_F8, ASCII_F8, 0));
|
act->addKeyEvent(KeyState(KEYCODE_F8, ASCII_F8, 0));
|
||||||
|
|
||||||
|
act = new Action(guiMap, "FULS", _("Toggle FullScreen"), kKeyRemapActionType);
|
||||||
|
act->addKeyEvent(KeyState(KEYCODE_RETURN, ASCII_RETURN, KBD_ALT));
|
||||||
|
|
||||||
mapper->addGlobalKeymap(guiMap);
|
mapper->addGlobalKeymap(guiMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue