mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 17:29:11 +00:00
GUI: Add the arrow keys to the GUI keymap
This commit is contained in:
parent
3567c4f159
commit
0f1e1894c1
@ -128,6 +128,26 @@ Common::Keymap *GuiManager::getKeymap() const {
|
||||
act->setKeyEvent(KeyState(KEYCODE_ESCAPE, ASCII_ESCAPE, 0));
|
||||
guiMap->addAction(act);
|
||||
|
||||
act = new Action(kStandardActionMoveUp, _("Up"));
|
||||
act->setKeyEvent(KEYCODE_UP);
|
||||
act->addDefaultInputMapping("JOY_UP");
|
||||
guiMap->addAction(act);
|
||||
|
||||
act = new Action(kStandardActionMoveDown, _("Down"));
|
||||
act->setKeyEvent(KEYCODE_DOWN);
|
||||
act->addDefaultInputMapping("JOY_DOWN");
|
||||
guiMap->addAction(act);
|
||||
|
||||
act = new Action(kStandardActionMoveLeft, _("Left"));
|
||||
act->setKeyEvent(KEYCODE_LEFT);
|
||||
act->addDefaultInputMapping("JOY_LEFT");
|
||||
guiMap->addAction(act);
|
||||
|
||||
act = new Action(kStandardActionMoveRight, _("Right"));
|
||||
act->setKeyEvent(KEYCODE_RIGHT);
|
||||
act->addDefaultInputMapping("JOY_RIGHT");
|
||||
guiMap->addAction(act);
|
||||
|
||||
return guiMap;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user