2002-03-23 22:30:39 +00:00
|
|
|
<?xml version="1.0"?>
|
2002-03-25 11:59:26 +00:00
|
|
|
<!--
|
|
|
|
Mouse binding definitions.
|
|
|
|
|
|
|
|
NOTE: CURRENTLY, THIS FILE IS USED ONLY IF YOU CONFIGURE FLIGHTGEAR
|
|
|
|
'with-new-mouse' AT BUILD TIME.
|
|
|
|
|
|
|
|
This file is included by preferences.xml, and uses the context of its
|
|
|
|
inclusion point; that means that you need to prepend "/input/mice"
|
|
|
|
to all property names.
|
|
|
|
|
|
|
|
Currently, Glut supports only one mouse, but the configuration format
|
|
|
|
is designed to support additional mice in the future if possible.
|
|
|
|
|
|
|
|
The current mode for each mouse is held in the
|
|
|
|
/input/mice/mouse[n]/mode property.
|
|
|
|
-->
|
|
|
|
|
2002-03-23 22:30:39 +00:00
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
2002-03-25 11:59:26 +00:00
|
|
|
<mouse n="0">
|
|
|
|
|
|
|
|
<mode-count type="int">3</mode-count>
|
|
|
|
<mode archive="y" type="int">0</mode>
|
|
|
|
|
2002-03-26 12:49:14 +00:00
|
|
|
|
|
|
|
<mode n="0">
|
|
|
|
<cursor>inherit</cursor>
|
2002-03-27 00:54:34 +00:00
|
|
|
<constrained>false</constrained>
|
|
|
|
<pass-through>true</pass-through>
|
2002-03-26 12:49:14 +00:00
|
|
|
|
|
|
|
<button n="2">
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/input/mice/mouse[0]/mode</property>
|
|
|
|
<value>1</value>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</mode>
|
|
|
|
|
|
|
|
<mode n="1">
|
|
|
|
<cursor>crosshair</cursor>
|
|
|
|
<constrained>true</constrained>
|
2002-03-27 00:54:34 +00:00
|
|
|
<pass-through>false</pass-through>
|
2002-03-26 12:49:14 +00:00
|
|
|
|
|
|
|
<button n="2">
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/input/mice/mouse[0]/mode</property>
|
|
|
|
<value>2</value>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2002-03-26 13:17:32 +00:00
|
|
|
<!-- x-axis moves the ailerons -->
|
|
|
|
<x-axis>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/controls/aileron</property>
|
|
|
|
<factor>2.0</factor>
|
|
|
|
<min type="double">-1.0</min>
|
|
|
|
<max type="double">1.0</max>
|
|
|
|
<wrap type="bool">false</wrap>
|
|
|
|
</binding>
|
|
|
|
</x-axis>
|
|
|
|
|
|
|
|
<!-- y-axis moves the elevator -->
|
|
|
|
<y-axis>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/controls/elevator</property>
|
|
|
|
<factor>-2.0</factor>
|
|
|
|
<min type="double">-1.0</min>
|
|
|
|
<max type="double">1.0</max>
|
|
|
|
<wrap type="bool">false</wrap>
|
|
|
|
</binding>
|
|
|
|
</y-axis>
|
|
|
|
|
2002-03-26 12:49:14 +00:00
|
|
|
</mode>
|
|
|
|
|
|
|
|
<!-- Mode 2: view mode -->
|
|
|
|
<mode n="2">
|
|
|
|
<cursor>left-right</cursor>
|
|
|
|
<constrained>true</constrained>
|
2002-03-27 00:54:34 +00:00
|
|
|
<pass-through>false</pass-through>
|
2002-03-26 12:49:14 +00:00
|
|
|
|
|
|
|
<!-- left button centres the view heading offset -->
|
|
|
|
<button n="0">
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/view/offset-deg</property>
|
|
|
|
<value>0</value>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<!-- middle button centres the view pitch offset -->
|
|
|
|
<button n="1">
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/view/tilt-deg</property>
|
|
|
|
<value>0</value>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<!-- right button switches modes -->
|
|
|
|
<button n="2">
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/input/mice/mouse[0]/mode</property>
|
|
|
|
<value>0</value>
|
2002-03-23 22:30:39 +00:00
|
|
|
</binding>
|
2002-03-26 12:49:14 +00:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<!-- x-axis moves the view heading offset -->
|
|
|
|
<x-axis>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/sim/view/offset-deg</property>
|
|
|
|
<factor type="double">-360</factor>
|
|
|
|
<min type="double">0</min>
|
|
|
|
<max type="double">360</max>
|
|
|
|
<wrap type="bool">true</wrap>
|
|
|
|
</binding>
|
|
|
|
</x-axis>
|
|
|
|
|
|
|
|
<!-- y-axis moves the view pitch offset -->
|
|
|
|
<y-axis>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/sim/view/tilt-deg</property>
|
|
|
|
<factor type="double">-180</factor>
|
|
|
|
<min type="double">-90</min>
|
|
|
|
<max type="double">90</max>
|
|
|
|
<wrap type="bool">false</wrap>
|
|
|
|
</binding>
|
|
|
|
</y-axis>
|
|
|
|
|
|
|
|
</mode>
|
2002-03-25 11:59:26 +00:00
|
|
|
|
2002-03-23 22:30:39 +00:00
|
|
|
</mouse>
|
|
|
|
|
|
|
|
</PropertyList>
|