1
#sample using joystick number, id=4 implies use of js4
2
axis id=0 src=4 target=joyaxis device=1 axis=1
4
#sample using vendor and product id. remap to joystick 0 (js0 if joymap is installed first)
5
#device defaults to 0 if not specified
6
#CH Products Combatstick
7
axis vendor=0x068e product=0x00f4 src=0 target=joyaxis device=0 axis=0
8
axis vendor=0x068e product=0x00f4 src=1 target=joyaxis device=0 axis=1
9
button vendor=0x068e product=0x00f4 src=0 target=joybtn device=0 button=0
12
# autorelease: release the key automatically
13
# release: only apply rule on releasing the button (otherwise only on pressing)
14
# press: only apply rule on pressing the button
15
# shift: apply this operation if shifted
16
# invert: reverse the axis (if an axis is the target)
17
#if press and release are not specified, then two rules are created, one with release
18
#and one with press in such a way that buttons will correspond precisely
20
# invert: reverse the axis
22
button vendor=0x068e product=0x00f4 src=1 target=kbd button="a" flags=autorelease
23
#strings can be used to specify a sequence, REL indicates release
25
button vendor=0x068e product=0x00f4 src=2 target=kbd button="b REL b a REL a n REL n g REL g leftshift 1 REL 1 REL leftshift"
27
#CH Products PRO Throttle
28
axis vendor=0x068e product=0x00f1 src=2 target=joyaxis device=0 axis=2
29
axis vendor=0x068e product=0x00f1 src=0 target=mouse axis=0
30
axis vendor=0x068e product=0x00f1 src=1 target=mouse axis=1
31
button vendor=0x068e product=0x00f1 src=1 target=mouse button=0
34
axis vendor=0x068e product=0x00f2 src=2 target=joyaxis device=0 axis=3
36
#specify a shift button, that gives access to extra functionality
37
shift vendor=0x068e product=0x00f1 src=5
39
#assign a joystick number fo script purposes
40
script vendor=0x068e product=0x00f4 device=0 #Combatstick
41
script vendor=0x068e product=0x00f1 device=1 #Throttle
43
#for adding a custom program script