MiSTer-devel / PSX_MiSTer

PSX for MiSTer
GNU General Public License v2.0
216 stars 52 forks source link

Feature request: Map Analog toggle to button #88

Closed AtomicShroom closed 2 years ago

AtomicShroom commented 2 years ago

Can the Analog toggle be made to be mapped to a controller button? Would be more convenient.

I've got a spare button on my 8BitDo SN30 that would be perfect for this.

sorgelig commented 2 years ago

Do you mean switch between digital/analog mode of controller from button?

Btw, I have several 8bitDo controllers, and none of them have more buttons than PSX requires :)

AtomicShroom commented 2 years ago

Yes exactly that. The wired SN30 has two additional buttons (I guess “home” and “sharing?”). I have one mapped to the OSD and the other is unused, and could be used to toggle Analog/Digital:

7DE52553-F628-4ADE-A94F-0EB9B6139A82

Vampier commented 2 years ago

Atomic: did you try to map that 'unused' button to something? Last time I tried I could not map it.

AtomicShroom commented 2 years ago

Aw heck, you’re right! It doesn’t do anything. :(

Nevermind then!

Vampier commented 2 years ago

no problem - it seems you can remap that button on the sn30pro2 though - you might want to close this ticket

AtomicShroom commented 2 years ago

Well I guess it could still be implemented as something mappable? Maybe there exists a controller with a spare button that someone might want to map this to? Or maybe there will exist in the future? Or maybe someone would want to map it to a keyboard key. Why not just allow it?

Vampier commented 2 years ago

buttons can be mapped already

Fuzzybane commented 2 years ago

just use one of the button combo's that are selectable in OSD, they were added for this reason

jeremyrutz commented 2 years ago

I have a 8bitdo Pro 2 with a button in the middle of the controller that could be used as the Mode toggle. It'd be more convenient to have a dedicated button for Mode toggle than hitting the button combo (right now I use L1+L2+R1+R2+Dpad). And it'd be more like how the original PSX works. Obviously not a big deal but more of a convenience thing.

birdybro commented 2 years ago

I have a 8bitdo Pro 2 with a button in the middle of the controller that could be used as the Mode toggle. It'd be more convenient to have a dedicated button for Mode toggle than hitting the button combo (right now I use L1+L2+R1+R2+Dpad). And it'd be more like how the original PSX works. Obviously not a big deal but more of a convenience thing.

I don't think that button in the middle is mappable to xinput. It's just a profile switch button for the controller, you setup controller profiles with the 8bitdo ultimate software (cringe name). The rear buttons aren't mappable either, they are just internal macros.

jeremyrutz commented 2 years ago

I have a 8bitdo Pro 2 with a button in the middle of the controller that could be used as the Mode toggle. It'd be more convenient to have a dedicated button for Mode toggle than hitting the button combo (right now I use L1+L2+R1+R2+Dpad). And it'd be more like how the original PSX works. Obviously not a big deal but more of a convenience thing.

I don't think that button in the middle is mappable to xinput. It's just a profile switch button for the controller, you setup controller profiles with the 8bitdo ultimate software (cringe name). The rear buttons aren't mappable either, they are just internal macros.

Ah, that makes sense. For sure the rear buttons are that way, so likely you're right about that middle button.

In that case, it would be nice for the Mode select to cycle, so that for example hitting L1+L2+R1+R2+Dpad in ANY direction would cycle between Analog and Digital. That way, I could just map a macro to that middle button and cycle through Mode every time I pressed it, like how an original DualShock works.

sorgelig commented 2 years ago

adding such combo means removing it from possible button combos inside the game.

missionfloyd commented 2 years ago

PS4, PS5, and Switch controllers also have buttons to spare.

The PS5's mute button in particular seems perfect for the mode button. It can even light up, as can the Switch and 8bitdo home buttons, so it might be possible to implement the mode LED as well.

birdybro commented 2 years ago

PS4, PS5, and Switch controllers also have buttons to spare.

The PS5's mute button in particular seems perfect for the mode button. It can even light up, as can the Switch and 8bitdo home buttons, so it might be possible to implement the mode LED as well.

The PS5 and PS4 controllers already have a default mapping. Press the touchpad as a button and it swaps modes.

missionfloyd commented 2 years ago

So that's what the "DS Mode" setting means by "Click".

RobertPeip commented 2 years ago

Implemented