mirror of https://github.com/stella-emu/stella.git
add Joy2B+ support to libretro (#950)
fixes #949 and returns input to Elevator Agent game
This commit is contained in:
parent
8ded49c33a
commit
e14af76eb5
|
@ -86,6 +86,10 @@ static void update_input()
|
|||
case Controller::Type::Genesis:
|
||||
MASK_EVENT(Event::LeftJoystickFire5, pad, RETRO_DEVICE_ID_JOYPAD_A);
|
||||
[[fallthrough]];
|
||||
case Controller::Type::Joy2BPlus:
|
||||
MASK_EVENT(Event::LeftJoystickFire9, pad, RETRO_DEVICE_ID_JOYPAD_Y);
|
||||
MASK_EVENT(Event::LeftJoystickFire5, pad, RETRO_DEVICE_ID_JOYPAD_A);
|
||||
[[fallthrough]];
|
||||
case Controller::Type::Joystick:
|
||||
MASK_EVENT(Event::LeftJoystickLeft, pad, RETRO_DEVICE_ID_JOYPAD_LEFT);
|
||||
MASK_EVENT(Event::LeftJoystickRight, pad, RETRO_DEVICE_ID_JOYPAD_RIGHT);
|
||||
|
@ -142,6 +146,10 @@ static void update_input()
|
|||
case Controller::Type::Genesis:
|
||||
MASK_EVENT(Event::RightJoystickFire5, pad, RETRO_DEVICE_ID_JOYPAD_A);
|
||||
[[fallthrough]];
|
||||
case Controller::Type::Joy2BPlus:
|
||||
MASK_EVENT(Event::LeftJoystickFire9, pad, RETRO_DEVICE_ID_JOYPAD_Y);
|
||||
MASK_EVENT(Event::LeftJoystickFire5, pad, RETRO_DEVICE_ID_JOYPAD_A);
|
||||
[[fallthrough]];
|
||||
case Controller::Type::Joystick:
|
||||
MASK_EVENT(Event::RightJoystickLeft, pad, RETRO_DEVICE_ID_JOYPAD_LEFT);
|
||||
MASK_EVENT(Event::RightJoystickRight, pad, RETRO_DEVICE_ID_JOYPAD_RIGHT);
|
||||
|
|
Loading…
Reference in New Issue