BACKENDS: Hide the virtual keyboard action when one isn't available

This commit is contained in:
Cameron Cawley 2021-08-28 20:54:36 +01:00 committed by Eugene Sandulenko
parent 6dbb129f40
commit dd1bf34f18

View File

@ -340,11 +340,16 @@ Common::Keymap *DefaultEventManager::getGlobalKeymap() {
act->setEvent(EVENT_MAINMENU);
globalKeymap->addAction(act);
act = new Action("VIRT", _("Display keyboard"));
act->addDefaultInputMapping("C+F7");
act->addDefaultInputMapping("JOY_BACK");
act->setEvent(EVENT_VIRTUAL_KEYBOARD);
globalKeymap->addAction(act);
#ifndef ENABLE_VKEYBD
if (g_system->hasFeature(OSystem::kFeatureVirtualKeyboard))
#endif
{
act = new Action("VIRT", _("Display keyboard"));
act->addDefaultInputMapping("C+F7");
act->addDefaultInputMapping("JOY_BACK");
act->setEvent(EVENT_VIRTUAL_KEYBOARD);
globalKeymap->addAction(act);
}
act = new Action("MUTE", _("Toggle mute"));
act->addDefaultInputMapping("C+u");