mamedev / mame

MAME
https://www.mamedev.org/
Other
7.91k stars 1.98k forks source link

pce/sf2 and sgx/sf2 unworking Slot Devices (6button controllers included) #12018

Open soundsnow opened 6 months ago

soundsnow commented 6 months ago

MAME version

0.262

System information

Android 12 Snapdragon 750G

INI configuration details

No response

Emulated system/software

PC Engine and SuperGrafx (or TurboGrafx-16)

Incorrect behaviour

Street Fighter II Champion Edition Options Run, II, I ,SEL Slot Devices: Arcade Pad 6 or Avenue Pad 6 Reset System Options Run, II, I ,SEL

I tried the Mega Drive's MD Pad 6 and it was detectable by SF2

I'm pretty sure SF2 is a six button game. I guess other Slot Devices may also not work. Joypad 2 is available. Arcade Pad 6 and Avenue Pad 6 are not available. I haven’t tested the rest: Joypad 2 Turbo, Mouse, Multitap, Pachinko, PC Joy.

Expected behaviour

Street Fighter II Champion Edition Slot Devices: Arcade Pad 6 or Avenue Pad 6 Reset System Options I, II, III, IV, V, VI I remember that this game will automatically switch as long as the six-button controller is plugged in, no reset required. And fix other slot devices if they are unavailable.

Steps to reproduce

No response

Additional details

No response

soundsnow commented 6 months ago

I guess MAME may think that all PCE/SGX/TG16 input devices are two-button controller, so no matter what input device is replaced, nothing will change.

angelosa commented 6 months ago

You didn't check one thing: 2/6 mode select is in TAB -> Machine Configuration Screenshot from 2024-02-07 17-10-06 I feel like it shouldn't necessarily be there (it's a pad toggle after all, it can be accessed by the user at any time), but I loathe at the alternative of using IPT_TOGGLE in Input Assignments without some kind of visual feedback.

cuavas commented 6 months ago

You do get visual feedback for IPT_TOGGLE – that’s what the “toggle inputs” menu is for. If you make them IPT_TOGGLE, you can assign keys to toggle them as well as changing them in a menu.

angelosa commented 6 months ago

I mean: that's not ideal either, my experience with a real PCE pad is that I quickly push back and forth the autofire lever because I know what's the state all the time (i.e. don't need to open TAB menu specifically for that), and iirc the input state is saved on restarts, which is something I gladly opt-out as alternative here.

angelosa commented 6 months ago

IPT_POSITIONAL? They are mostly multi-state levers after all.