1
0
Fork 0

Initial support for the 3dconnexion SpaceNavigator 3D-mouse.

Needs the event input subsystem.
This commit is contained in:
torsten 2009-08-11 15:57:32 +00:00
parent 44ec84e6f6
commit 6856dd15dc

View file

@ -0,0 +1,126 @@
<PropertyList>
<name>3Dconnexion SpaceNavigator</name>
<!--
<event>
<desc>X-Axis</desc>
<name>rel-x-translate</name>
<binding>
<command>property-adjust</command>
<property>/some/property</property>
<factor type="double">1.0</factor>
<wrap type="bool">false</wrap>
</binding>
</event>
-->
<event>
<name>rel-y-translate</name>
<binding>
<command>property-adjust</command>
<property>sim/current-view/field-of-view</property>
<factor type="double">0.01</factor>
<min type="double">10.0</min>
<max type="double">80.0</max>
<wrap type="bool">false</wrap>
</binding>
</event>
<!--
<event>
<name>rel-z-translate</name>
<binding>
<command>property-adjust</command>
<property>/some/property</property>
<factor type="double">1.0</factor>
<min type="double">-10000</min>
<max type="double">10000</max>
<wrap type="bool">false</wrap>
</binding>
</event>
-->
<event>
<name>rel-x-rotate</name>
<binding>
<command>property-adjust</command>
<property>sim/current-view/pitch-offset-deg</property>
<factor type="double">0.01</factor>
<min type="double">-90.0</min>
<max type="double">90.0</max>
<wrap type="bool">false</wrap>
</binding>
</event>
<event>
<name>rel-y-rotate</name>
<binding>
<command>property-adjust</command>
<property>sim/current-view/roll-offset-deg</property>
<factor type="double">-0.01</factor>
<min type="double">-60.0</min>
<max type="double">60.0</max>
<wrap type="bool">false</wrap>
</binding>
</event>
<event>
<name>rel-z-rotate</name>
<binding>
<command>property-adjust</command>
<property>sim/current-view/heading-offset-deg</property>
<factor type="double">-0.01</factor>
<min type="double">0.0</min>
<max type="double">360.0</max>
<wrap type="bool">true</wrap>
</binding>
</event>
<!-- set LED from nose gear indicator -->
<event>
<name>led-misc</name>
<setting>
<value>1</value>
<condition>
<property>/gear/gear[0]/indicator-servicable</property>
<greater-than>
<property>/gear/gear[0]/position-norm</property>
<value>0.9</value>
</greater-than>
</condition>
</setting>
<setting>
<value>0</value>
<condition>
<not>
<and>
<property>/gear/gear[0]/indicator-servicable</property>
<greater-than>
<property>/gear/gear[0]/position-norm</property>
<value>0.9</value>
</greater-than>
</and>
</not>
</condition>
</setting>
</event>
<event>
<desc>Left Button</desc>
<name>button-0</name>
<binding>
<command>nasal</command>
<script>view.stepView(1)</script>
</binding>
</event>
<event>
<desc>Right Button</desc>
<name>button-1</name>
<binding>
<command>nasal</command>
<script>view.stepView(-1)</script>
</binding>
</event>
</PropertyList>