Debian Codegraph @

Input/Joysticks/ThrustMaster/FCS.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4
5 $Id$
6
7 ************************************************************************
8 Setup for a Thrustmaster FCS-compatible joystick with
9 one stick, one digital hat, and four buttons.
10
11 Layout:
12 Axis 0: ailerons
13 Axis 1: elevator
14
15 Hat:
16 Axis 2: view direction
17 Axis 3: view elevation
18
19 Button 0: brakes
20 Button 1: center view
21 Button 2: elevator trim up
22 Button 3: elevator trim down
23 ************************************************************************
24
25 30-Jul-2004
26 Eric Hathaway <[email protected]> : "Nasal-ized" the joystick configuration,
27 drawing ideas from the Cyborg-Gold-3d-USB configuration file. Also changed
28 some of the bindings, so the joystick setup is more like the default
29 four-axis-joystick config.
30
31 -->
32
33 <PropertyList>
34
35 <name>Analog 2-axis 4-button 1-hat FCS joystick</name>
36
37 <axis n="0">
38 <desc>Aileron</desc>
39 <binding>
40 <command>property-scale</command>
41 <property>/controls/flight/aileron</property>
42 <power type="double">2</power>
43 </binding>
44 </axis>
45
46 <axis n="1">
47 <desc>Elevator</desc>
48 <binding>
49 <command>property-scale</command>
50 <property>/controls/flight/elevator</property>
51 <factor type="double">-1.0</factor>
52 <power type="double">2</power>
53 </binding>
54 </axis>
55
56 <axis n="2">
57 <desc>View Direction</desc>
58 <low>
59 <repeatable type="bool">true</repeatable>
60 <binding>
61 <command>nasal</command>
62 <script>view.panViewDir(1)</script>
63 </binding>
64 </low>
65 <high>
66 <repeatable type="bool">true</repeatable>
67 <binding>
68 <command>nasal</command>
69 <script>view.panViewDir(-1)</script>
70 </binding>
71 </high>
72 </axis>
73
74 <axis n="3">
75 <desc>View Elevation</desc>
76 <low>
77 <repeatable type="bool">true</repeatable>
78 <binding>
79 <command>nasal</command>
80 <script>view.panViewPitch(-1)</script>
81 </binding>
82 </low>
83 <high>
84 <repeatable type="bool">true</repeatable>
85 <binding>
86 <command>nasal</command>
87 <script>view.panViewPitch(1)</script>
88 </binding>
89 </high>
90 </axis>
91
92 <button n="0">
93 <desc>Brakes</desc>
94 <binding>
95 <command>nasal</command>
96 <script>controls.applyBrakes(1)</script>
97 </binding>
98 <mod-up>
99 <binding>
100 <command>nasal</command>
101 <script>controls.applyBrakes(0)</script>
102 </binding>
103 </mod-up>
104 </button>
105
106 <button n="1">
107 <desc>Center View</desc>
108 <binding>
109 <command>nasal</command>
110 <script>view.resetView()</script>
111 </binding>
112 </button>
113
114 <button n="2">
115 <desc>Elevator Trim Up</desc>
116 <repeatable type="bool">true</repeatable>
117 <binding>
118 <command>nasal</command>
119 <script>controls.elevatorTrim(-1)</script>
120 </binding>
121 </button>
122
123 <button n="3">
124 <desc>Elevator Trim Down</desc>
125 <repeatable type="bool">true</repeatable>
126 <binding>
127 <command>nasal</command>
128 <script>controls.elevatorTrim(1)</script>
129 </binding>
130 </button>
131
132 </PropertyList>
133
134 <!-- end of FCS.xml -->