2002-03-23 22:30:39 +00:00
|
|
|
<?xml version="1.0"?>
|
2002-03-25 11:59:26 +00:00
|
|
|
<!--
|
|
|
|
Mouse binding definitions.
|
|
|
|
|
2004-06-24 14:45:48 +00:00
|
|
|
This is a independent configuration file: it is not part of the main
|
|
|
|
FlightGear property tree.
|
2002-03-25 11:59:26 +00:00
|
|
|
|
|
|
|
Currently, Glut supports only one mouse, but the configuration format
|
2004-06-24 14:45:48 +00:00
|
|
|
is designed to support additional mice in the future if possible. The
|
|
|
|
current mode for each mouse is held in the
|
2002-03-27 22:51:13 +00:00
|
|
|
/devices/status/mice/mouse[n]/mode property.
|
2002-03-25 11:59:26 +00:00
|
|
|
-->
|
|
|
|
|
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-04-09 10:45:47 +00:00
|
|
|
<constrained type="bool">false</constrained>
|
|
|
|
<pass-through type="bool">true</pass-through>
|
2002-03-26 12:49:14 +00:00
|
|
|
|
|
|
|
<button n="2">
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2002-03-27 22:51:13 +00:00
|
|
|
<property>/devices/status/mice/mouse[0]/mode</property>
|
2002-04-09 10:45:47 +00:00
|
|
|
<value type="int">1</value>
|
2002-03-26 12:49:14 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2002-05-02 14:08:26 +00:00
|
|
|
<!-- extra buttons control elevator trim -->
|
|
|
|
<!-- these are often assigned to mouse-wheel motion in Linux -->
|
|
|
|
<button n="3">
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/elevator-trim</property>
|
2002-07-04 15:45:08 +00:00
|
|
|
<step type="double">0.002</step>
|
2002-05-02 14:08:26 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="4">
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/elevator-trim</property>
|
2002-07-04 15:45:08 +00:00
|
|
|
<step type="double">-0.002</step>
|
2002-05-02 14:08:26 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2002-03-26 12:49:14 +00:00
|
|
|
</mode>
|
|
|
|
|
|
|
|
<mode n="1">
|
|
|
|
<cursor>crosshair</cursor>
|
2002-04-09 10:45:47 +00:00
|
|
|
<constrained type="bool">true</constrained>
|
|
|
|
<pass-through type="bool">false</pass-through>
|
2002-03-26 12:49:14 +00:00
|
|
|
|
|
|
|
<button n="2">
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2002-03-27 22:51:13 +00:00
|
|
|
<property>/devices/status/mice/mouse[0]/mode</property>
|
2002-04-09 10:45:47 +00:00
|
|
|
<value type="int">2</value>
|
2002-03-26 12:49:14 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2002-05-02 14:08:26 +00:00
|
|
|
<!-- extra buttons control elevator trim -->
|
|
|
|
<!-- these are often assigned to mouse-wheel motion in Linux -->
|
|
|
|
<button n="3">
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/elevator-trim</property>
|
2002-05-02 14:08:26 +00:00
|
|
|
<step type="double">0.01</step>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="4">
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/elevator-trim</property>
|
2002-05-02 14:08:26 +00:00
|
|
|
<step type="double">-0.01</step>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2002-03-27 22:51:13 +00:00
|
|
|
<!-- Mouse left/right motion. -->
|
2002-03-26 13:17:32 +00:00
|
|
|
<x-axis>
|
2002-03-27 22:51:13 +00:00
|
|
|
|
|
|
|
<!-- No buttons pressed: control ailerons -->
|
2002-03-26 13:17:32 +00:00
|
|
|
<binding>
|
2002-03-27 22:51:13 +00:00
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[0]</property>
|
|
|
|
</not>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
|
|
|
</condition>
|
2002-03-26 13:17:32 +00:00
|
|
|
<command>property-adjust</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/aileron</property>
|
2002-04-09 10:45:47 +00:00
|
|
|
<factor type="double">4.0</factor>
|
2002-03-26 13:17:32 +00:00
|
|
|
<min type="double">-1.0</min>
|
|
|
|
<max type="double">1.0</max>
|
|
|
|
<wrap type="bool">false</wrap>
|
|
|
|
</binding>
|
2002-03-27 22:51:13 +00:00
|
|
|
|
|
|
|
<!-- Left button pressed: control rudder -->
|
|
|
|
<binding>
|
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[0]</property>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
<command>property-adjust</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/rudder</property>
|
2002-04-09 10:45:47 +00:00
|
|
|
<factor type="double">4.0</factor>
|
2002-03-27 22:51:13 +00:00
|
|
|
<min type="double">-1.0</min>
|
|
|
|
<max type="double">1.0</max>
|
|
|
|
<wrap type="bool">false</wrap>
|
|
|
|
</binding>
|
|
|
|
|
2002-03-26 13:17:32 +00:00
|
|
|
</x-axis>
|
|
|
|
|
2002-03-27 22:51:13 +00:00
|
|
|
<!-- Mouse up/down motion -->
|
2002-03-26 13:17:32 +00:00
|
|
|
<y-axis>
|
2002-03-27 22:51:13 +00:00
|
|
|
|
|
|
|
<!-- No buttons pressed: control elevator -->
|
2002-03-26 13:17:32 +00:00
|
|
|
<binding>
|
2002-03-27 22:51:13 +00:00
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[0]</property>
|
|
|
|
</not>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
|
|
|
</condition>
|
2002-03-26 13:17:32 +00:00
|
|
|
<command>property-adjust</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/elevator</property>
|
2002-04-09 10:45:47 +00:00
|
|
|
<factor type="double">-4.0</factor>
|
2002-03-26 13:17:32 +00:00
|
|
|
<min type="double">-1.0</min>
|
|
|
|
<max type="double">1.0</max>
|
|
|
|
<wrap type="bool">false</wrap>
|
|
|
|
</binding>
|
2002-03-27 22:51:13 +00:00
|
|
|
|
|
|
|
<!-- Middle button pressed: control throttle -->
|
|
|
|
<binding>
|
2003-12-22 20:05:18 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.throttleMouse()</script>
|
2002-03-27 22:51:13 +00:00
|
|
|
</binding>
|
2002-03-26 13:17:32 +00:00
|
|
|
</y-axis>
|
|
|
|
|
2002-03-26 12:49:14 +00:00
|
|
|
</mode>
|
|
|
|
|
|
|
|
<!-- Mode 2: view mode -->
|
|
|
|
<mode n="2">
|
|
|
|
<cursor>left-right</cursor>
|
2002-04-09 10:45:47 +00:00
|
|
|
<constrained type="bool">true</constrained>
|
|
|
|
<pass-through type="bool">false</pass-through>
|
2002-03-26 12:49:14 +00:00
|
|
|
|
2005-10-23 16:00:06 +00:00
|
|
|
<!-- left button centres view direction; middle + left also resets view point -->
|
2002-03-26 12:49:14 +00:00
|
|
|
<button n="0">
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2002-04-18 14:52:32 +00:00
|
|
|
<property>/sim/current-view/heading-offset-deg</property>
|
2004-06-24 14:45:48 +00:00
|
|
|
<property>/sim/view/config/front-direction-deg</property>
|
2002-04-19 01:12:34 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2003-02-06 19:46:48 +00:00
|
|
|
<property>/sim/current-view/goal-pitch-offset-deg</property>
|
2005-10-23 16:00:06 +00:00
|
|
|
<property>/sim/view/config/pitch-offset-deg</property>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<condition>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</condition>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/current-view/x-offset-m</property>
|
|
|
|
<property>/sim/view/config/x-offset-m</property>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<condition>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</condition>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/current-view/y-offset-m</property>
|
|
|
|
<property>/sim/view/config/y-offset-m</property>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<condition>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</condition>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/current-view/z-offset-m</property>
|
|
|
|
<property>/sim/view/config/z-offset-m</property>
|
2002-03-26 12:49:14 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<!-- right button switches modes -->
|
|
|
|
<button n="2">
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2002-03-27 22:51:13 +00:00
|
|
|
<property>/devices/status/mice/mouse[0]/mode</property>
|
2002-04-09 10:45:47 +00:00
|
|
|
<value type="int">0</value>
|
2002-03-23 22:30:39 +00:00
|
|
|
</binding>
|
2002-03-26 12:49:14 +00:00
|
|
|
</button>
|
|
|
|
|
2002-05-02 14:08:26 +00:00
|
|
|
<!-- extra buttons control elevator trim -->
|
|
|
|
<!-- these are often assigned to mouse-wheel motion in Linux -->
|
|
|
|
<button n="3">
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/elevator-trim</property>
|
2002-05-02 14:08:26 +00:00
|
|
|
<step type="double">0.01</step>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button n="4">
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
2003-04-01 12:41:12 +00:00
|
|
|
<property>/controls/flight/elevator-trim</property>
|
2002-05-02 14:08:26 +00:00
|
|
|
<step type="double">-0.01</step>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2002-03-27 22:51:13 +00:00
|
|
|
<!-- Mouse left/right motion -->
|
2002-03-26 12:49:14 +00:00
|
|
|
<x-axis>
|
2002-03-27 22:51:13 +00:00
|
|
|
|
2005-01-28 15:17:30 +00:00
|
|
|
<!-- No buttons pressed: rotate the view left or right -->
|
2002-03-26 12:49:14 +00:00
|
|
|
<binding>
|
2002-03-27 22:51:13 +00:00
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[0]</property>
|
|
|
|
</not>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
|
|
|
</condition>
|
2002-03-26 12:49:14 +00:00
|
|
|
<command>property-adjust</command>
|
2002-04-18 14:52:32 +00:00
|
|
|
<property>/sim/current-view/heading-offset-deg</property>
|
2002-03-26 12:49:14 +00:00
|
|
|
<factor type="double">-360</factor>
|
|
|
|
<min type="double">0</min>
|
|
|
|
<max type="double">360</max>
|
|
|
|
<wrap type="bool">true</wrap>
|
|
|
|
</binding>
|
2002-03-27 22:51:13 +00:00
|
|
|
|
2005-01-28 15:17:30 +00:00
|
|
|
|
|
|
|
<!-- Middle button pressed: move the view position left or right -->
|
|
|
|
<binding>
|
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[0]</property>
|
|
|
|
</not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/sim/current-view/x-offset-m</property>
|
|
|
|
<factor type="double">1</factor>
|
|
|
|
<wrap type="bool">false</wrap>
|
|
|
|
</binding>
|
|
|
|
|
2002-03-26 12:49:14 +00:00
|
|
|
</x-axis>
|
|
|
|
|
2002-03-27 22:51:13 +00:00
|
|
|
<!-- Mouse up/down motion -->
|
2002-03-26 12:49:14 +00:00
|
|
|
<y-axis>
|
2002-03-27 22:51:13 +00:00
|
|
|
|
|
|
|
<!-- No buttons pressed: tilt the view up and down -->
|
2002-03-26 12:49:14 +00:00
|
|
|
<binding>
|
2002-03-27 22:51:13 +00:00
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[0]</property>
|
|
|
|
</not>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
|
|
|
</condition>
|
2002-03-26 12:49:14 +00:00
|
|
|
<command>property-adjust</command>
|
2002-04-18 14:52:32 +00:00
|
|
|
<property>/sim/current-view/pitch-offset-deg</property>
|
2002-03-26 12:49:14 +00:00
|
|
|
<factor type="double">-180</factor>
|
|
|
|
<min type="double">-90</min>
|
|
|
|
<max type="double">90</max>
|
|
|
|
<wrap type="bool">false</wrap>
|
|
|
|
</binding>
|
2005-01-28 15:17:30 +00:00
|
|
|
|
|
|
|
<!-- Middle button pressed: move the view up and down -->
|
|
|
|
<binding>
|
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[0]</property>
|
|
|
|
</not>
|
|
|
|
<property>/devices/status/mice/mouse[0]/button[1]</property>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/sim/current-view/y-offset-m</property>
|
|
|
|
<factor type="double">-1</factor>
|
|
|
|
<wrap type="bool">false</wrap>
|
|
|
|
</binding>
|
|
|
|
|
2002-03-26 12:49:14 +00:00
|
|
|
</y-axis>
|
|
|
|
|
|
|
|
</mode>
|
2002-03-25 11:59:26 +00:00
|
|
|
|
2002-03-23 22:30:39 +00:00
|
|
|
</mouse>
|
|
|
|
|
|
|
|
</PropertyList>
|
2002-04-19 01:12:34 +00:00
|
|
|
|