-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.conf
52 lines (44 loc) · 1.06 KB
/
test.conf
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//Automaticaly generated section
grab device "Jess Tech Dual Analog Rumble Pad"
button BTN_TRIGGER = 288
button BTN_THUMB = 289
button BTN_THUMB2 = 290
button BTN_TOP = 291
button BTN_TOP2 = 292
button BTN_PINKIE = 293
button BTN_BASE = 294
button BTN_BASE2 = 295
button BTN_BASE3 = 296
button BTN_BASE4 = 297
button BTN_BASE5 = 298
button BTN_BASE6 = 299
axis ABS_X = 0
axis ABS_Y = 1
axis ABS_Z = 2
axis ABS_RZ = 5
axis ABS_HAT0X = 16
axis ABS_HAT0Y = 17
//Your configuration follows
//When BTN_TOP is pressed, BTN_TRIGGER controls some other button
if(BTN_TOP){
button BTN_TRIGGER
}
if(BTN_TOP){
button BTN_THUMB
}
//When BTN_TOP2 is pressed, the ABS_X axis is mapped to two buttons.
// This can be useful to convert Hat axes to buttons...
if(BTN_TOP2){
axis ABS_X
}
//ABS_Y axis is permanently mapped to buttons
axis ABS_Y
//These two definitions map ABS_RZ to two buttons,
// and when BTN_BASE6 button is pressed, it is mapped to two other buttons.
axis ABS_HAT0X
if(BTN_BASE6){
axis ABS_HAT0X
}
if(BTN_BASE5){
new_axis ABS_RZ
}