RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

[Feature Request] <Hotkeys should be tied to current detected controller>

Open YutMarma opened this issue 1 year ago • 3 comments

Using RetroArch with a platoon of different controllers can be very irritating, because while the "Retropad Binds" can (after some moderate coaxing) be modified based on the current controller, hotkey assignments are a global configuration that pays no attention to which controller is currently plugged in.

Real-world example: I have two different controllers - an 8BitDo SN30 (SNES, but with dual-analogs and extra triggers) and an 8BitDo Pro 2 (a DualShock-style controller). For some games, I prefer using the SN30, and for others, the Pro 2 is better-suited. I swap them in and out as necessary, so only one controller is plugged in at a given time.

However, despite being made by the same manufacturer, each controller has a different "internal button assignment" (for lack of a more descriptive term). For instance, the "home" button is Button 12 on the SN30, but is Button 10 on the Pro 2. Both should be "Menu Toggle", but because each is a different internal button, this means that every time I want to switch controllers I have to manually re-do my hotkeys, which is sort of cumbersome and 20th-century.

My humble suggestion would be to either have hotkeys reference Retropad binds instead of the "bare metal" of whatever xinput/dinput/etc reports, or include hotkey configuration in the per-controller autoconfigs (which means hotkeys will be changed whenever the autoconfig is loaded).

Both options have their own strengths. The first option might be a bit more straightforward from a user perspective, it just would mean having to assign a "Home" button in Retropad binds, then setting the Menu Toggle hotkey to "Home" instead of "Button (number)". The second option might come in handy when switching between 4-button and 6/8/10/12-button controllers, because then you could also assign certain functions to the keyboard or a 2nd controller if-and-only-if a low-button controller is currently being used.

YutMarma avatar May 27 '25 01:05 YutMarma

I believe would be covered by this existing request: https://github.com/libretro/RetroArch/issues/16112

hizzlekizzle avatar May 27 '25 03:05 hizzlekizzle

You believe correctly! Thanks for the pointer. 😃

YutMarma avatar May 28 '25 13:05 YutMarma

I don't know if you are aware but you can use a selectable key combo for this functionality.

Say, R1+L1 or Start+Select will toggle menu. There are various options to select. This will work after changing controller bindings and it will use what you choose as R1+L1 for each pad.

tmarques avatar Jul 20 '26 16:07 tmarques