1
0
Fork 0
fgdata/mice.xml
curt de1c84c8c0 Jim Wilson:
There are a number of little changes.  Tested with current cvs as of 20:30EST
04Feb.  Actually been running since the beginning of January with these
patches.  All changes work without crashing with the current base package cvs,
but there are some visual problems with the views (other than pilot view)
without changes to the base package.

As soon as you can build test and commit I can add in those base package
updates that will make it all work nicely.  I will also go through all the 3D
Aircraft configs to make sure the change in the "pitch-offset" for cockpit
views (see below) are made to maintain current behavior.

Here are the files (changes listed below):
http://www.spiderbark.com/fgfs/viewerupdate.diffs.gz
http://www.spiderbark.com/fgfs/viewerupdate.tar.gz
2003-02-06 19:46:48 +00:00

280 lines
7.2 KiB
XML

<?xml version="1.0"?>
<!--
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
/devices/status/mice/mouse[n]/mode property.
-->
<PropertyList>
<mouse n="0">
<mode-count type="int">3</mode-count>
<mode archive="y" type="int">0</mode>
<mode n="0">
<cursor>inherit</cursor>
<constrained type="bool">false</constrained>
<pass-through type="bool">true</pass-through>
<button n="2">
<binding>
<command>property-assign</command>
<property>/devices/status/mice/mouse[0]/mode</property>
<value type="int">1</value>
</binding>
</button>
<!-- extra buttons control elevator trim -->
<!-- these are often assigned to mouse-wheel motion in Linux -->
<button n="3">
<binding>
<command>property-adjust</command>
<property>/controls/elevator-trim</property>
<step type="double">0.002</step>
</binding>
</button>
<button n="4">
<binding>
<command>property-adjust</command>
<property>/controls/elevator-trim</property>
<step type="double">-0.002</step>
</binding>
</button>
</mode>
<mode n="1">
<cursor>crosshair</cursor>
<constrained type="bool">true</constrained>
<pass-through type="bool">false</pass-through>
<button n="2">
<binding>
<command>property-assign</command>
<property>/devices/status/mice/mouse[0]/mode</property>
<value type="int">2</value>
</binding>
</button>
<!-- extra buttons control elevator trim -->
<!-- these are often assigned to mouse-wheel motion in Linux -->
<button n="3">
<binding>
<command>property-adjust</command>
<property>/controls/elevator-trim</property>
<step type="double">0.01</step>
</binding>
</button>
<button n="4">
<binding>
<command>property-adjust</command>
<property>/controls/elevator-trim</property>
<step type="double">-0.01</step>
</binding>
</button>
<!-- Mouse left/right motion. -->
<x-axis>
<!-- No buttons pressed: control ailerons -->
<binding>
<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>
<command>property-adjust</command>
<property>/controls/aileron</property>
<factor type="double">4.0</factor>
<min type="double">-1.0</min>
<max type="double">1.0</max>
<wrap type="bool">false</wrap>
</binding>
<!-- 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>
<property>/controls/rudder</property>
<factor type="double">4.0</factor>
<min type="double">-1.0</min>
<max type="double">1.0</max>
<wrap type="bool">false</wrap>
</binding>
</x-axis>
<!-- Mouse up/down motion -->
<y-axis>
<!-- No buttons pressed: control elevator -->
<binding>
<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>
<command>property-adjust</command>
<property>/controls/elevator</property>
<factor type="double">-4.0</factor>
<min type="double">-1.0</min>
<max type="double">1.0</max>
<wrap type="bool">false</wrap>
</binding>
<!-- Middle button pressed: control throttle -->
<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>/controls/throttle</property>
<factor type="double">-4.0</factor>
<min type="double">0.0</min>
<max type="double">1.0</max>
<wrap type="bool">false</wrap>
</binding>
</y-axis>
</mode>
<!-- Mode 2: view mode -->
<mode n="2">
<cursor>left-right</cursor>
<constrained type="bool">true</constrained>
<pass-through type="bool">false</pass-through>
<!-- left button centres the offsets -->
<button n="0">
<binding>
<command>property-assign</command>
<property>/sim/current-view/heading-offset-deg</property>
<value alias="/sim/view/config/front-direction-deg"/>
</binding>
<binding>
<command>property-assign</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<property>/sim/current-view/config/pitch-offset-deg</property>
</binding>
</button>
<!-- right button switches modes -->
<button n="2">
<binding>
<command>property-assign</command>
<property>/devices/status/mice/mouse[0]/mode</property>
<value type="int">0</value>
</binding>
</button>
<!-- extra buttons control elevator trim -->
<!-- these are often assigned to mouse-wheel motion in Linux -->
<button n="3">
<binding>
<command>property-adjust</command>
<property>/controls/elevator-trim</property>
<step type="double">0.01</step>
</binding>
</button>
<button n="4">
<binding>
<command>property-adjust</command>
<property>/controls/elevator-trim</property>
<step type="double">-0.01</step>
</binding>
</button>
<!-- Mouse left/right motion -->
<x-axis>
<!-- No buttons pressed: move the view position left or right -->
<binding>
<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>
<command>property-adjust</command>
<property>/sim/current-view/heading-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>
<!-- Mouse up/down motion -->
<y-axis>
<!-- No buttons pressed: tilt the view up and down -->
<binding>
<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>
<command>property-adjust</command>
<property>/sim/current-view/pitch-offset-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>
</mouse>
</PropertyList>