Initial support for the 3dconnexion SpaceNavigator 3D-mouse.
[fg:toms-fgdata.git] / Input / Event / 3dconnexion / SpaceNavigator.xml
1 <PropertyList>
2
3   <name>3Dconnexion SpaceNavigator</name>
4
5 <!--
6   <event>
7     <desc>X-Axis</desc>
8     <name>rel-x-translate</name>
9     <binding>
10       <command>property-adjust</command>
11       <property>/some/property</property>
12       <factor type="double">1.0</factor>
13       <wrap type="bool">false</wrap>
14     </binding>
15   </event>
16 -->
17   <event>
18     <name>rel-y-translate</name>
19     <binding>
20       <command>property-adjust</command>
21       <property>sim/current-view/field-of-view</property>
22       <factor type="double">0.01</factor>
23       <min type="double">10.0</min>
24       <max type="double">80.0</max>
25       <wrap type="bool">false</wrap>
26     </binding>
27   </event>
28
29 <!--
30   <event>
31     <name>rel-z-translate</name>
32     <binding>
33       <command>property-adjust</command>
34       <property>/some/property</property>
35       <factor type="double">1.0</factor>
36       <min type="double">-10000</min>
37       <max type="double">10000</max>
38       <wrap type="bool">false</wrap>
39     </binding>
40   </event>
41 -->
42
43   <event>
44     <name>rel-x-rotate</name>
45     <binding>
46       <command>property-adjust</command>
47       <property>sim/current-view/pitch-offset-deg</property>
48       <factor type="double">0.01</factor>
49       <min type="double">-90.0</min>
50       <max type="double">90.0</max>
51       <wrap type="bool">false</wrap>
52     </binding>
53   </event>
54
55   <event>
56     <name>rel-y-rotate</name>
57     <binding>
58       <command>property-adjust</command>
59       <property>sim/current-view/roll-offset-deg</property>
60       <factor type="double">-0.01</factor>
61       <min type="double">-60.0</min>
62       <max type="double">60.0</max>
63       <wrap type="bool">false</wrap>
64     </binding>
65   </event>
66
67   <event>
68     <name>rel-z-rotate</name>
69     <binding>
70       <command>property-adjust</command>
71       <property>sim/current-view/heading-offset-deg</property>
72       <factor type="double">-0.01</factor>
73       <min type="double">0.0</min>
74       <max type="double">360.0</max>
75       <wrap type="bool">true</wrap>
76     </binding>
77   </event>
78
79   <!-- set LED from nose gear indicator -->
80   <event>
81     <name>led-misc</name>
82     <setting>
83       <value>1</value>
84       <condition>
85         <property>/gear/gear[0]/indicator-servicable</property>
86         <greater-than>
87           <property>/gear/gear[0]/position-norm</property>
88           <value>0.9</value>
89         </greater-than>
90       </condition>
91     </setting>
92     <setting>
93       <value>0</value>
94       <condition>
95         <not>
96           <and>
97           <property>/gear/gear[0]/indicator-servicable</property>
98           <greater-than>
99             <property>/gear/gear[0]/position-norm</property>
100             <value>0.9</value>
101           </greater-than>
102           </and>
103         </not>
104       </condition>
105     </setting>
106   </event>
107
108   <event>
109     <desc>Left Button</desc>
110     <name>button-0</name>
111     <binding>
112       <command>nasal</command>
113       <script>view.stepView(1)</script>
114     </binding>
115   </event>
116
117   <event>
118     <desc>Right Button</desc>
119     <name>button-1</name>
120     <binding>
121       <command>nasal</command>
122       <script>view.stepView(-1)</script>
123     </binding>
124   </event>
125
126 </PropertyList>