controller_patcher_configs icon indicating copy to clipboard operation
controller_patcher_configs copied to clipboard

Assign two physical buttons to the same vpad button?

Open edmcintosh opened this issue 7 years ago • 1 comments

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.

edmcintosh avatar Sep 22 '18 13:09 edmcintosh

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

Maschell avatar Sep 22 '18 15:09 Maschell