Maschell / controller_patcher_configs

Collection of config files for the controller patcher
GNU General Public License v3.0
28 stars 80 forks source link

Assign two physical buttons to the same vpad button? #29

Open edmcintosh opened 6 years ago

edmcintosh commented 6 years ago

Is it possible to assign two physical buttons to the same vpad button?

I’m using a Switch Horipad, which has a Screenshot button in addition to the Home button. I tried to assign both of those to send Plus (similar to some 3DS games having both Start and Select pause the game, so you had a pause button on each side):

VPAD_BUTTON_PLUS = 0x01, 0x10 VPAD_BUTTON_PLUS = 0x01, 0x20

but the second one seems to override the first, so Screenshot sends Plus, and Home doesn’t send anything.

Maschell commented 6 years ago

You can remap the gamepad buttons. https://github.com/Maschell/controller_patcher/wiki/2.-Gamepad-button-remapping#example-2

So you would need to map it normally in the usb controller .ini, but in the gamepad remapping .ini you use:

[Gamepad]
VPAD_BUTTON_PLUS=VPAD_BUTTON_MINUS