mirror of
https://github.com/Maschell/controller_patcher_configs.git
synced 2024-11-17 13:49:19 +01:00
34 lines
1.1 KiB
INI
34 lines
1.1 KiB
INI
|
// Retrode 2
|
||
|
[vid=0x0403,pid=0x97c1]
|
||
|
|
||
|
//At first we set the dpad mode. This controller uses 2 bytes. One byte is for up(0x00)/down(0xFF) and the other for left(0x00)/right(0xFF).
|
||
|
DPAD_MODE = DPAD_Absolute_2Values
|
||
|
|
||
|
// byte-position / value
|
||
|
|
||
|
//Set dpad values. The values you need to set depend on the dpad mode.
|
||
|
VPAD_BUTTON_DPAD_ABS_UP = 0x02,0x9C
|
||
|
VPAD_BUTTON_DPAD_ABS_DOWN = 0x02,0x64
|
||
|
VPAD_BUTTON_DPAD_ABS_LEFT = 0x01,0x9C
|
||
|
VPAD_BUTTON_DPAD_ABS_RIGHT = 0x01,0x64
|
||
|
|
||
|
//Set normal buttons
|
||
|
VPAD_BUTTON_A = 0x03,0x10
|
||
|
VPAD_BUTTON_B = 0x03,0x01
|
||
|
VPAD_BUTTON_X = 0x03,0x20
|
||
|
VPAD_BUTTON_Y = 0x03,0x02
|
||
|
VPAD_BUTTON_MINUS = 0x03,0x04
|
||
|
VPAD_BUTTON_PLUS = 0x03,0x08
|
||
|
|
||
|
//We only have 1 trigger on each side, lets always trigger both.
|
||
|
VPAD_BUTTON_R = 0x03,0x80
|
||
|
VPAD_BUTTON_ZR = 0x03,0x80
|
||
|
VPAD_BUTTON_L = 0x03,0x40
|
||
|
VPAD_BUTTON_ZL = 0x03,0x40
|
||
|
|
||
|
PAD_COUNT=4
|
||
|
PAD1_FILTER=0x00,0x01
|
||
|
PAD2_FILTER=0x00,0x02
|
||
|
PAD3_FILTER=0x00,0x03
|
||
|
PAD4_FILTER=0x00,0x04
|