Skip to content

Commit

Permalink
GRIM: Fix mapping of joystick action buttons in EMI (#2540)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmerckx committed Oct 17, 2020
1 parent ee4799c commit be1d4f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engines/grim/grim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,22 +567,22 @@ Common::KeymapArray GrimEngine::initKeymapsEMI(const char *target) {
engineKeyMap->addAction(act);

act = new Action("EXAM", _("Examine/Look"));
act->setKeyEvent(KeyState(KEYCODE_s, 'e'));
act->setKeyEvent(KeyState(KEYCODE_l, 'e'));
act->addDefaultInputMapping("JOY_X");
engineKeyMap->addAction(act);

act = new Action("BUSE", _("Use/Talk"));
act->setKeyEvent(KeyState(KEYCODE_w, 'u'));
act->setKeyEvent(KeyState(KEYCODE_u, 'u'));
act->addDefaultInputMapping("JOY_A");
engineKeyMap->addAction(act);

act = new Action("PICK", _("Pick up/Put away"));
act->setKeyEvent(KeyState(KEYCODE_a, 'p'));
act->setKeyEvent(KeyState(KEYCODE_KP_PLUS, 'p'));
act->addDefaultInputMapping("JOY_B");
engineKeyMap->addAction(act);

act = new Action("INVT", _("Inventory"));
act->setKeyEvent(KeyState(KEYCODE_d, 'i'));
act->setKeyEvent(KeyState(KEYCODE_INSERT, 'i'));
act->addDefaultInputMapping("JOY_Y");
engineKeyMap->addAction(act);

Expand Down

0 comments on commit be1d4f6

Please sign in to comment.