mirror of
https://github.com/libretro/stella2023.git
synced 2025-02-25 20:00:38 +00:00
joystick: Add menuMode mappings before emulationMode mappings (#847)
For some controllers, the initial default (i.e. when the controller is first attached) mappings seem to not work in emulation mode, but work just fine in menu mode. The emulation mode mappings are shown in the UI, but do not work until the second time the emulator is started. From debugging, even in emulation mode the joyMap is returning menu bindings when in-game. Fix this bug by adding the emulation mode mappings before the menu mode mappings. Fixes: a7189ce7ec6f ("fix attempt for #692") Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
This commit is contained in:
parent
130e79dd9a
commit
2c31957173
@ -173,8 +173,8 @@ void PhysicalJoystickHandler::addToDatabase(const PhysicalJoystickPtr& stick)
|
||||
{
|
||||
StickInfo info("", stick);
|
||||
myDatabase.emplace(stick->name, info);
|
||||
setStickDefaultMapping(stick->ID, Event::NoType, EventMode::kEmulationMode);
|
||||
setStickDefaultMapping(stick->ID, Event::NoType, EventMode::kMenuMode);
|
||||
setStickDefaultMapping(stick->ID, Event::NoType, EventMode::kEmulationMode);
|
||||
}
|
||||
|
||||
ostringstream buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user