Initial support for the 3dconnexion SpaceNavigator 3D-mouse.
Needs the event input subsystem.
This commit is contained in:
parent
44ec84e6f6
commit
6856dd15dc
1 changed files with 126 additions and 0 deletions
126
Input/Event/3dconnexion/SpaceNavigator.xml
Normal file
126
Input/Event/3dconnexion/SpaceNavigator.xml
Normal 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>
|
Loading…
Reference in a new issue