libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.15k stars 1.82k forks source link

allow users to set "menu_swap_ok_cancel_buttons" in controller autoconfigs #4327

Open tony971 opened 7 years ago

tony971 commented 7 years ago

This will allow users to swap the ok and cancel buttons on some controllers, but keep the default config with others.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40435545-allow-users-to-set-menu_swap_ok_cancel_buttons-in-controller-autoconfigs?utm_campaign=plugin&utm_content=tracker%2F296058&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F296058&utm_medium=issues&utm_source=github).
andres-asm commented 7 years ago

How would it work with "all users control menu"? To make that work correctly with more than one gamepad we would have add a lot of complexity... for what is literally nit-picking.

tony971 commented 7 years ago

I'd rather have it default back to the retroarch.cfg setting when "all users control menu" is active than to not implement the feature at all.

Formedras commented 5 years ago

How would it work with "all users control menu"? To make that work correctly with more than one gamepad we would have add a lot of complexity... for what is literally nit-picking.

RetroArch would, ideally, not be using "A" and "B" actions in the UI, but rather "OK" and "Cancel". (This would be similar to Steam Input, or PlayStation Mobile when that was a thing.) If that is already the case, it's already completely taken care of. If not, it's actually not as much work as you think it is.

Personally, I'd actually change the request to be "Replace 'menu_swap_ok_cancel_buttons' option with UI function assignments in bindings". Some people, for whatever reason, may actually prefer using X or Y for "Cancel". (For example, an absurdly-extreme Final Fantasy VIII fanboy may want their menu buttons to be similar to that game, where Triangle, or X by RetroArch reckoning, is "Cancel".) Or even the shoulders, or Start/Select, for "OK"/"Cancel".

andres-asm commented 5 years ago

No matter what though I won't be addressing this. That said, ok_cancel can be overriden just fine on a per-autoconf basis

Basically set input_swap_override to true in the autoconf. It's undocumented and pretty much unknown.