Skip to content

2. Gamepad button remapping

Maschell edited this page Dec 11, 2018 · 6 revisions

Overview

The controller patcher provides support for remapping the gamepad buttons. To identify the config for the gamepad, use this as the first line:

[gamepad]

Button remapping

The following buttons can be remapped:

Buttons:
A                   =   VPAD_BUTTON_A
B                   =   VPAD_BUTTON_B
X                   =   VPAD_BUTTON_X
Y                   =   VPAD_BUTTON_Y
Plus                =   VPAD_BUTTON_PLUS
Minus               =   VPAD_BUTTON_MINUS
Home                =   VPAD_BUTTON_HOME
Sync                =   VPAD_BUTTON_SYNC
TV                  =   VPAD_BUTTON_TV

DPAD:
DPAD left           =   VPAD_BUTTON_LEFT
DPAD left           =   VPAD_BUTTON_RIGHT
DPAD left           =   VPAD_BUTTON_UP
DPAD left           =   VPAD_BUTTON_DOWN

Trigger:
ZR                  =   VPAD_BUTTON_ZR
ZL                  =   VPAD_BUTTON_ZL
L                   =   VPAD_BUTTON_L
R                   =   VPAD_BUTTON_R

Sticks:
Stick press left    =   VPAD_BUTTON_STICK_L
Stick press right   =   VPAD_BUTTON_STICK_R

These values can be used on BOTH sides.

Examples

Here a few examples how a gamepad remapping config could look like:

Example 1

Swapping X and A:

[Gamepad]
VPAD_BUTTON_A=VPAD_BUTTON_X
VPAD_BUTTON_X=VPAD_BUTTON_A

Example 2

Map R also on Y. When you press R you still get R, but when you press Y you now get R too.

[Gamepad]
VPAD_BUTTON_Y=VPAD_BUTTON_R

etc.

TODO

  • Add an option for stick remapping