-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathRetrode_2.ini
33 lines (27 loc) · 1.14 KB
/
Retrode_2.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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