Showing 1 changed files with 0 additions and 425 deletions
-425
.fgfs/mice-perso.xml
... ...
@@ -1,426 +0,0 @@
1
-<?xml version="1.0"?>
2
-<!--
3
-Mouse binding definitions.
4
-
5
-This is a independent configuration file: it is not part of the main
6
-FlightGear property tree.
7
-
8
-Currently, Glut supports only one mouse, but the configuration format
9
-is designed to support additional mice in the future if possible.  The
10
-current mode for each mouse is held in the
11
-/devices/status/mice/mouse[n]/mode property.
12
-
13
-<PropertyList>
14
-<input>
15
-<mice>
16
-
17
- <mouse n="0">
18
-
19
-  <mode-count type="int">4</mode-count>
20
-  <mode archive="y" type="int">0</mode>
21
-
22
-
23
-  <mode n="0">
24
-   <cursor>inherit</cursor>
25
-   <constrained type="bool">false</constrained>
26
-   <pass-through type="bool">true</pass-through>
27
-
28
-   <button n="0">
29
-    <binding>
30
-     <condition>
31
-       <property>/sim/menubar/autovisibility/enabled</property>
32
-     </condition>
33
-     <command>property-assign</command>
34
-     <property>/sim/menubar/visibility</property>
35
-     <value type="bool">false</value>
36
-    </binding>
37
-    <binding>
38
-     <condition>
39
-       <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
40
-     </condition>
41
-     <command>property-assign</command>
42
-     <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
43
-     <value type="bool">0</value>
44
-    </binding>
45
-   </button>
46
-
47
-   <button n="2">
48
-    <binding>
49
-    <condition>
50
-      <property>/sim/mouse/right-button-mode-cycle-enabled</property>
51
-       <not>
52
-         <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
53
-       </not>
54
-     </condition>
55
-     <command>nasal</command>
56
-     <script>
57
-       setprop("/devices/status/mice/mouse[0]/mode", props.globals.getNode("/input/joysticks/js/id") == nil ? 1 : 2);
58
-     </script>
59
-    </binding>
60
-    <binding>
61
-     <condition>
62
-       <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
63
-     </condition>
64
-     <command>property-assign</command>
65
-     <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
66
-     <value type="bool">0</value>
67
-    </binding>
68
-   </button>
69
-
70
-   <!-- extra buttons control elevator trim -->
71
-   <!-- these are often assigned to mouse-wheel motion in Linux -->
72
-   <button n="3">
73
-    <binding>
74
-     <condition>
75
-       <not>
76
-         <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
77
-       </not>
78
-     </condition>
79
-     <command>nasal</command>
80
-     <script>view.decrease();</script>
81
-    </binding>
82
-    <binding>
83
-     <condition>
84
-       <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
85
-     </condition>
86
-     <command>property-assign</command>
87
-     <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
88
-     <value type="bool">0</value>
89
-    </binding>
90
-   </button>
91
-
92
-   <button n="4">
93
-    <binding>
94
-     <condition>
95
-       <not>
96
-         <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
97
-       </not>
98
-     </condition>
99
-     <command>nasal</command>
100
-     <script>view.increase();</script>
101
-    </binding>
102
-    <binding>
103
-     <condition>
104
-       <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
105
-     </condition>
106
-     <command>property-assign</command>
107
-     <property type="bool">/devices/status/mice/mouse[0]/mode/freezed</property>
108
-     <value type="bool">0</value>
109
-    </binding>
110
-   </button>
111
- 
112
-  </mode>
113
-
114
-  <mode n="1">
115
-   <cursor>crosshair</cursor>
116
-   <constrained type="bool">true</constrained>
117
-   <pass-through type="bool">false</pass-through>
118
-
119
-   <button n="2">
120
-    <binding>
121
-    <condition>
122
-      <property>/sim/mouse/right-button-mode-cycle-enabled</property>
123
-    </condition>
124
-     <command>property-assign</command>
125
-     <property>/devices/status/mice/mouse[0]/mode</property>
126
-     <value type="int">2</value>
127
-    </binding>
128
-   </button>
129
-
130
-   <!-- extra buttons control elevator trim -->
131
-   <!-- these are often assigned to mouse-wheel motion in Linux -->
132
-   <button n="3">
133
-    <binding>
134
-     <command>property-adjust</command>
135
-     <property>/controls/flight/elevator-trim</property>
136
-     <step type="double">0.01</step>
137
-    </binding>
138
-   </button>
139
-
140
-   <button n="4">
141
-    <binding>
142
-     <command>property-adjust</command>
143
-     <property>/controls/flight/elevator-trim</property>
144
-     <step type="double">-0.01</step>
145
-    </binding>
146
-   </button>
147
-
148
-   <!-- Mouse left/right motion. -->
149
-   <x-axis>
150
-
151
-    <!-- No buttons pressed: control ailerons -->
152
-    <binding>
153
-     <condition>
154
-      <and>
155
-       <not>
156
-        <property>/devices/status/mice/mouse[0]/button[0]</property>
157
-       </not>
158
-       <not>
159
-        <property>/devices/status/mice/mouse[0]/button[1]</property>
160
-       </not>
161
-      </and>
162
-     </condition>
163
-     <command>property-adjust</command>
164
-     <property>/controls/flight/aileron</property>
165
-     <factor type="double">4.0</factor>
166
-     <min type="double">-1.0</min>
167
-     <max type="double">1.0</max>
168
-     <wrap type="bool">false</wrap>
169
-    </binding>
170
-
171
-    <!-- Left button pressed: control rudder -->
172
-    <binding>
173
-     <condition>
174
-      <and>
175
-       <property>/devices/status/mice/mouse[0]/button[0]</property>
176
-       <not>
177
-        <property>/devices/status/mice/mouse[0]/button[1]</property>
178
-       </not>
179
-      </and>
180
-     </condition>
181
-     <command>property-adjust</command>
182
-     <property>/controls/flight/rudder</property>
183
-     <factor type="double">4.0</factor>
184
-     <min type="double">-1.0</min>
185
-     <max type="double">1.0</max>
186
-     <wrap type="bool">false</wrap>
187
-    </binding>
188
-
189
-   </x-axis>
190
-
191
-   <!-- Mouse up/down motion -->
192
-   <y-axis>
193
-
194
-    <!-- No buttons pressed: control elevator -->
195
-    <binding>
196
-     <condition>
197
-      <and>
198
-       <not>
199
-        <property>/devices/status/mice/mouse[0]/button[0]</property>
200
-       </not>
201
-       <not>
202
-        <property>/devices/status/mice/mouse[0]/button[1]</property>
203
-       </not>
204
-      </and>
205
-     </condition>
206
-     <command>property-adjust</command>
207
-     <property>/controls/flight/elevator</property>
208
-     <factor type="double">-4.0</factor>
209
-     <min type="double">-1.0</min>
210
-     <max type="double">1.0</max>
211
-     <wrap type="bool">false</wrap>
212
-    </binding>
213
-
214
-    <!-- Middle button pressed: control throttle -->
215
-    <binding>
216
-     <command>nasal</command>
217
-     <script>controls.throttleMouse()</script>
218
-    </binding>
219
-   </y-axis>
220
-
221
-  </mode>
222
-
223
-  <!-- Mode 2: view mode -->
224
-  <mode n="2">
225
-   <cursor>left-right</cursor>
226
-   <constrained type="bool">true</constrained>
227
-   <pass-through type="bool">false</pass-through>
228
-
229
-   <!-- left button centres view direction; middle + left also resets view point -->
230
-   <button n="0">
231
-    <binding>
232
-     <command>nasal</command>
233
-     <script>
234
-         view.resetViewDir();
235
-         view.resetFOV();
236
-     </script>
237
-    </binding>
238
-    <binding>
239
-     <condition>
240
-      <property>/devices/status/mice/mouse[0]/button[1]</property>
241
-     </condition>
242
-     <command>nasal</command>
243
-     <script>
244
-         view.resetViewPos();
245
-     </script>
246
-    </binding>
247
-   </button>
248
-
249
-   <!-- right button switches modes -->
250
-   <button n="2">
251
-    <binding>
252
-        <condition>
253
-          <property>/sim/mouse/right-button-mode-cycle-enabled</property>
254
-        </condition>
255
-     <command>property-assign</command>
256
-     <property>/devices/status/mice/mouse[0]/mode</property>
257
-     <value type="int">0</value>
258
-    </binding>
259
-   </button>
260
- 
261
-   <!-- extra buttons control FoV -->
262
-   <!-- these are often assigned to mouse-wheel motion in Linux -->
263
-   <button n="3">
264
-    <binding>
265
-      <command>nasal</command>
266
-      <script>view.decrease()</script>
267
-    </binding>
268
-   </button>
269
-
270
-   <button n="4">
271
-    <binding>
272
-      <command>nasal</command>
273
-      <script>view.increase()</script>
274
-    </binding>
275
-   </button>
276
-
277
-   <!-- Mouse left/right motion -->
278
-   <x-axis>
279
-
280
-    <!-- No buttons pressed: rotate the view left or right -->
281
-    <binding>
282
-     <condition>
283
-      <and>
284
-       <not>
285
-        <property>/devices/status/mice/mouse[0]/button[0]</property>
286
-       </not>
287
-       <not>
288
-        <property>/devices/status/mice/mouse[0]/button[1]</property>
289
-       </not>
290
-      </and>
291
-     </condition>
292
-     <command>property-adjust</command>
293
-     <property>/sim/current-view/heading-offset-deg</property>
294
-     <factor type="double">-360</factor>
295
-     <min type="double">0</min>
296
-     <max type="double">360</max>
297
-     <wrap type="bool">true</wrap>
298
-    </binding>
299
-
300
-
301
-    <!-- Middle button pressed: move the view position left or right -->
302
-    <binding>
303
-     <condition>
304
-      <and>
305
-       <not>
306
-        <property>/devices/status/mice/mouse[0]/button[0]</property>
307
-       </not>
308
-       <property>/devices/status/mice/mouse[0]/button[1]</property>
309
-      </and>
310
-     </condition>
311
-     <command>property-adjust</command>
312
-     <property>/sim/current-view/x-offset-m</property>
313
-     <factor type="double">1</factor>
314
-     <wrap type="bool">false</wrap>
315
-    </binding>
316
-
317
-   </x-axis>
318
-
319
-   <!-- Mouse up/down motion -->
320
-   <y-axis>
321
-
322
-    <!-- No buttons pressed: tilt the view up and down -->
323
-    <binding>
324
-     <condition>
325
-      <and>
326
-       <not>
327
-        <property>/devices/status/mice/mouse[0]/button[0]</property>
328
-       </not>
329
-       <not>
330
-        <property>/devices/status/mice/mouse[0]/button[1]</property>
331
-       </not>
332
-      </and>
333
-     </condition>
334
-     <command>property-adjust</command>
335
-     <property>/sim/current-view/pitch-offset-deg</property>
336
-     <factor type="double">-180</factor>
337
-     <min type="double">-90</min>
338
-     <max type="double">90</max>
339
-     <wrap type="bool">false</wrap>
340
-    </binding>
341
-
342
-    <!-- Middle button pressed, no Ctrl: move the view up and down -->
343
-    <binding>
344
-     <condition>
345
-      <and>
346
-       <not>
347
-        <property>/devices/status/mice/mouse[0]/button[0]</property>
348
-       </not>
349
-       <property>/devices/status/mice/mouse[0]/button[1]</property>
350
-       <not>
351
-        <property>/devices/status/keyboard/ctrl</property>
352
-       </not>
353
-      </and>
354
-     </condition>
355
-     <command>property-adjust</command>
356
-     <property>/sim/current-view/y-offset-m</property>
357
-     <factor type="double">-1</factor>
358
-     <wrap type="bool">false</wrap>
359
-    </binding>
360
-
361
-    <!-- Middle button and Ctrl pressed: move the view forward and backward -->
362
-    <binding>
363
-     <condition>
364
-      <and>
365
-       <not>
366
-        <property>/devices/status/mice/mouse[0]/button[0]</property>
367
-       </not>
368
-       <property>/devices/status/mice/mouse[0]/button[1]</property>
369
-       <property>/devices/status/keyboard/ctrl</property>
370
-      </and>
371
-     </condition>
372
-     <command>property-adjust</command>
373
-     <property>/sim/current-view/z-offset-m</property>
374
-     <factor type="double">1</factor>
375
-     <wrap type="bool">false</wrap>
376
-    </binding>
377
-
378
-   </y-axis>
379
-
380
-  </mode>
381
-
382
-  <!-- Mode 3: spring-loaded-view mode -->
383
-  <mode n="3">
384
-   <cursor>left-right</cursor>
385
-   <constrained type="bool">true</constrained>
386
-   <pass-through type="bool">false</pass-through>
387
-
388
-   <!-- Mouse left/right motion -->
389
-   <x-axis>
390
-
391
-    <!-- rotate the view left or right -->
392
-    <binding>
393
-     <command>property-adjust</command>
394
-     <property>/sim/current-view/heading-offset-deg</property>
395
-     <factor type="double">-360</factor>
396
-     <min type="double">0</min>
397
-     <max type="double">360</max>
398
-     <wrap type="bool">true</wrap>
399
-    </binding>
400
-
401
-   </x-axis>
402
-
403
-   <!-- Mouse up/down motion -->
404
-   <y-axis>
405
-
406
-    <!-- tilt the view up and down -->
407
-    <binding>
408
-     <command>property-adjust</command>
409
-     <property>/sim/current-view/pitch-offset-deg</property>
410
-     <factor type="double">-180</factor>
411
-     <min type="double">-90</min>
412
-     <max type="double">90</max>
413
-     <wrap type="bool">false</wrap>
414
-    </binding>
415
-
416
-   </y-axis>
417
-
418
-  </mode>
419
-    
420
- </mouse> <!-- of mouse 0 -->
421
-
422
-</mice>
423
-</input>
424
-</PropertyList>
425
-