mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
MM: MM1: Added keybinding actions
This commit is contained in:
parent
bed08fd350
commit
1551124d28
@ -65,9 +65,33 @@ bool Game::msgKeypress(const KeypressMessage &msg) {
|
||||
|
||||
bool Game::msgAction(const ActionMessage &msg) {
|
||||
switch (msg._action) {
|
||||
case KEYBIND_BASH:
|
||||
send("Bash", GameMessage("SHOW"));
|
||||
break;
|
||||
case KEYBIND_MAP:
|
||||
addView("MapPopup");
|
||||
return true;
|
||||
case KEYBIND_ORDER:
|
||||
addView("Order");
|
||||
return true;
|
||||
case KEYBIND_PROTECT:
|
||||
addView("Protect");
|
||||
return true;
|
||||
case KEYBIND_QUICKREF:
|
||||
addView("QuickRef");
|
||||
return true;
|
||||
case KEYBIND_REST:
|
||||
g_events->send(GameMessage("REST"));
|
||||
return true;
|
||||
case KEYBIND_SEARCH:
|
||||
send("Search", GameMessage("SHOW"));
|
||||
break;
|
||||
case KEYBIND_SPELL:
|
||||
addView("CastSpell");
|
||||
return true;
|
||||
case KEYBIND_UNLOCK:
|
||||
send("Unlock", GameMessage("SHOW"));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -58,12 +58,6 @@ bool GameCommands::msgAction(const ActionMessage & msg) {
|
||||
case KEYBIND_MINIMAP:
|
||||
_minimap.toggleMinimap();
|
||||
return true;
|
||||
case KEYBIND_MAP:
|
||||
addView("MapPopup");
|
||||
return true;
|
||||
case KEYBIND_QUICKREF:
|
||||
addView("QuickRef");
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user