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