mirror of
https://github.com/Maschell/controller_patcher.git
synced 2025-01-08 18:10:40 +01:00
47 lines
2.0 KiB
INI
47 lines
2.0 KiB
INI
// Wish Technologies Adaptoid N64-to-USB-HID converter
|
|
// Must be mapped to GamePad for the buffering to work properly (not to a Pro Controller)
|
|
[vid=0x06F7,pid=0x0001]
|
|
|
|
// A / B / L / R buttons
|
|
VPAD_BUTTON_A = 0x03, 0x01
|
|
// VPAD_BUTTON_B = 0x03, 0x08
|
|
VPAD_BUTTON_X = 0x03, 0x08 // Wii U SM64 port uses X rather than B
|
|
VPAD_BUTTON_L = 0x03, 0x40
|
|
VPAD_BUTTON_R = 0x03, 0x80
|
|
|
|
// N64 Start button mapped to Wii U + button
|
|
VPAD_BUTTON_PLUS = 0x04, 0x01
|
|
|
|
// N64 Z trigger mapped to Wii U ZL trigger
|
|
VPAD_BUTTON_ZL = 0x04, 0x02
|
|
|
|
// N64 C buttons mapped to Wii U right stick
|
|
VPAD_R_STICK_UP = 0x03, 0x20
|
|
VPAD_R_STICK_DOWN = 0x03, 0x02
|
|
VPAD_R_STICK_LEFT = 0x03, 0x10
|
|
VPAD_R_STICK_RIGHT = 0x03, 0x04
|
|
|
|
// N64 Dpad mapped to Wii U Dpad
|
|
VPAD_BUTTON_UP = 0x04, 0x04
|
|
VPAD_BUTTON_DOWN = 0x04, 0x08
|
|
VPAD_BUTTON_LEFT = 0x04, 0x10
|
|
VPAD_BUTTON_RIGHT = 0x04, 0x20
|
|
|
|
// N64 Stick mapped to Wii U Left Stick
|
|
VPad_L_Stick_X = 0x00, 0x00
|
|
// VPad_L_Stick_X_Default_MSB = 0x00 // Most significant byte - not needed, since zero
|
|
VPad_L_Stick_X_Bit_Length = 0x0C // 12bit HID axis report
|
|
VPad_L_Stick_X_Signed = True // Range includes negative values
|
|
VPad_L_Stick_X_MinMax = 0x50, 0xB0 // -1200 to 1200 expressed as s16 type (two's complement, i.e. 0xFB50 to 0x04B0)
|
|
VPad_L_Stick_X_MinMax_MSB = 0xFB, 0x04 // Most significant bytes
|
|
VPad_L_Stick_Y = 0x01, 0x00
|
|
// VPad_L_Stick_Y_Default_MSB = 0x00
|
|
VPad_L_Stick_Y_Bit_Length = 0x0C
|
|
VPad_L_Stick_Y_Bit_Offset = 0x04 // Second 12bit stick axis report is not byte-aligned
|
|
VPad_L_Stick_Y_Signed = True
|
|
VPad_L_Stick_Y_MinMax = 0x50, 0xB0
|
|
VPad_L_Stick_Y_MinMax_MSB = 0xFB, 0x04
|
|
VPad_L_Stick_Y_Invert = True
|
|
VPad_L_Stick_X_Deadzone = 0x20 // Customize for your controller wear state
|
|
VPad_L_Stick_Y_Deadzone = 0x20
|