GRIM: Fix mapping of joystick action buttons in EMI (#2540)

This commit is contained in:
LMerckx 2020-10-17 20:39:27 +02:00 committed by GitHub
parent ee4799c51a
commit be1d4f65d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);