~alexandre-hardy/linuxjoymap/linuxjoymap

« back to all changes in this revision

Viewing changes to oldexamples/basic.map

  • Committer: Alexandre Hardy
  • Date: 2009-07-17 09:20:57 UTC
  • Revision ID: ah@zenwalk-20090717092057-oxa4o16isawqa7ue
Initial creation of project

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#sample using joystick number, id=4 implies use of js4
 
2
axis id=0 src=4 target=joyaxis device=1 axis=1
 
3
 
 
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 
 
10
#flag can be: 
 
11
#    button: 
 
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 
 
19
#    axis:
 
20
#        invert:      reverse the axis
 
21
#
 
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
 
24
#see keys.map
 
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"  
 
26
 
 
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
 
32
 
 
33
#CH Products Pedals 
 
34
axis vendor=0x068e product=0x00f2 src=2 target=joyaxis device=0 axis=3
 
35
 
 
36
#specify a shift button, that gives access to extra functionality
 
37
shift vendor=0x068e product=0x00f1 src=5
 
38
 
 
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
 
42
 
 
43
#for adding a custom program script
 
44
code "test.program"
 
45