2005-06-15 03:25:59 +00:00
|
|
|
<?xml version="1.0" ?>
|
2008-04-06 08:59:56 +00:00
|
|
|
<!--
|
2005-06-15 03:25:59 +00:00
|
|
|
************************************************************************
|
|
|
|
* Bindings for Logitech Freeedom2-4 (USB) joystick based on
|
|
|
|
* Bindings for Logitech WingMan Extreme Digital 3D (USB) joystick.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Axis 0: ailerons
|
|
|
|
* Axis 1: elevator
|
|
|
|
* Axis 2 (slider): throttle
|
|
|
|
* Axis 3 (twist): rudder
|
|
|
|
* Axes 6 and 7 (hat): view direction
|
|
|
|
*
|
|
|
|
* Button 0: all brakes
|
|
|
|
* Button 1: trigger
|
|
|
|
* Button 2: elevator trim up
|
|
|
|
* Button 3: flap up
|
|
|
|
* Button 4: elevator trim down
|
|
|
|
* Button 5: flap down
|
|
|
|
* Button 6: right brake only
|
|
|
|
* Button 7: left brake only
|
|
|
|
* Button 8: prop coarse (advance)
|
|
|
|
* Button 9: prop fine (retard)
|
|
|
|
************************************************************************
|
|
|
|
|
|
|
|
-->
|
2008-04-06 08:59:56 +00:00
|
|
|
<PropertyList>
|
|
|
|
<name>Logitech Freedom 2.4</name>
|
|
|
|
<name>Logitech Logitech Freedom 2.4</name>
|
|
|
|
<name>Logitech Freedom 2.4 USB</name>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<axis>
|
|
|
|
<desc>Aileron</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>0</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>0</unix>
|
|
|
|
<windows>0</windows>
|
|
|
|
</number>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
|
|
|
<property>/controls/flight/aileron</property>
|
|
|
|
<squared type="bool">true</squared>
|
|
|
|
</binding>
|
|
|
|
</axis>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<axis>
|
|
|
|
<desc>Elevator</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>1</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>1</unix>
|
|
|
|
<windows>1</windows>
|
|
|
|
</number>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
|
|
|
<property>/controls/flight/elevator</property>
|
|
|
|
<factor type="double">-1.0</factor>
|
|
|
|
<squared type="bool">true</squared>
|
|
|
|
</binding>
|
|
|
|
</axis>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<axis>
|
|
|
|
<desc>Throttle</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>3</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>3</unix>
|
|
|
|
<windows>2</windows>
|
|
|
|
</number>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.throttleAxis()</script>
|
|
|
|
</binding>
|
|
|
|
</axis>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<axis>
|
|
|
|
<desc>Rudder</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>2</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>2</unix>
|
|
|
|
<windows>3</windows>
|
|
|
|
</number>
|
|
|
|
<binding>
|
|
|
|
<command>property-scale</command>
|
|
|
|
<property>/controls/flight/rudder</property>
|
|
|
|
<factor type="double">1.0</factor>
|
|
|
|
</binding>
|
|
|
|
</axis>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<axis>
|
2010-02-03 23:02:14 +00:00
|
|
|
<desc>View Direction Ctrl Aileron Trim</desc>
|
2008-04-06 08:59:56 +00:00
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>4</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>4</unix>
|
|
|
|
<windows>6</windows>
|
|
|
|
</number>
|
|
|
|
<low>
|
|
|
|
<repeatable>true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/sim/current-view/goal-heading-offset-deg</property>
|
|
|
|
<step type="double">5.0</step>
|
|
|
|
</binding>
|
2010-02-03 23:02:14 +00:00
|
|
|
<mod-ctrl>
|
|
|
|
<desc>aileron adjustment</desc>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.aileronTrim(-1)</script>
|
|
|
|
</binding>
|
|
|
|
</mod-ctrl>
|
2008-04-06 08:59:56 +00:00
|
|
|
</low>
|
|
|
|
<high>
|
|
|
|
<repeatable>true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/sim/current-view/goal-heading-offset-deg</property>
|
|
|
|
<step type="double">-5.0</step>
|
|
|
|
</binding>
|
2010-02-03 23:02:14 +00:00
|
|
|
<mod-ctrl>
|
|
|
|
<desc>aileron adjustment</desc>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.aileronTrim(1)</script>
|
|
|
|
</binding>
|
|
|
|
</mod-ctrl>
|
2008-04-06 08:59:56 +00:00
|
|
|
</high>
|
|
|
|
</axis>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<axis>
|
2010-02-03 23:02:14 +00:00
|
|
|
<desc>View Elevation Ctrl Elevator Trim</desc>
|
2008-04-06 08:59:56 +00:00
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>5</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>5</unix>
|
|
|
|
<windows>7</windows>
|
|
|
|
</number>
|
|
|
|
<low>
|
|
|
|
<repeatable>true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/sim/current-view/goal-pitch-offset-deg</property>
|
|
|
|
<step type="double">5.0</step>
|
|
|
|
</binding>
|
2010-02-03 23:02:14 +00:00
|
|
|
<mod-ctrl>
|
|
|
|
<desc>Elevator adjustment</desc>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.elevatorTrim(-1)</script>
|
|
|
|
</binding>
|
|
|
|
</mod-ctrl>
|
2008-04-06 08:59:56 +00:00
|
|
|
</low>
|
|
|
|
<high>
|
|
|
|
<repeatable>true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/sim/current-view/goal-pitch-offset-deg</property>
|
|
|
|
<step type="double">-5.0</step>
|
|
|
|
</binding>
|
2010-02-03 23:02:14 +00:00
|
|
|
<mod-ctrl>
|
|
|
|
<desc>Elevator adjustment</desc>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.elevatorTrim(1)</script>
|
|
|
|
</binding>
|
|
|
|
</mod-ctrl>
|
2008-04-06 08:59:56 +00:00
|
|
|
</high>
|
|
|
|
</axis>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Brakes</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>0</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>0</unix>
|
|
|
|
<windows>0</windows>
|
|
|
|
</number>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.applyBrakes(1)</script>
|
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.applyBrakes(0)</script>
|
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</button>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Trigger</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>1</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>1</unix>
|
|
|
|
<windows>1</windows>
|
|
|
|
</number>
|
|
|
|
<binding>
|
2010-02-03 23:02:14 +00:00
|
|
|
<!--<command>property-assign</command>
|
2008-04-06 08:59:56 +00:00
|
|
|
<property>ai/submodels/trigger</property>
|
2010-02-03 23:02:14 +00:00
|
|
|
<value type="bool">1</value>-->
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.trigger(1)</script>
|
2008-04-06 08:59:56 +00:00
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
2010-02-03 23:02:14 +00:00
|
|
|
<!--<command>property-assign</command>
|
2008-04-06 08:59:56 +00:00
|
|
|
<property>ai/submodels/trigger</property>
|
2010-02-03 23:02:14 +00:00
|
|
|
<value type="bool">0</value>-->
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.trigger(0)</script>
|
2008-04-06 08:59:56 +00:00
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</button>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Elevator trim up</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>2</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>2</unix>
|
|
|
|
<windows>2</windows>
|
|
|
|
</number>
|
|
|
|
<repeatable type="bool">true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.elevatorTrim(-1)</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Elevator trim down</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>4</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>4</unix>
|
|
|
|
<windows>4</windows>
|
|
|
|
</number>
|
|
|
|
<repeatable type="bool">true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.elevatorTrim(1)</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Flaps down</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>3</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>3</unix>
|
|
|
|
<windows>3</windows>
|
|
|
|
</number>
|
|
|
|
<repeatable>false</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.flapsDown(-1)</script>
|
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.flapsDown(0)</script>
|
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</button>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Flaps up</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>5</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>5</unix>
|
|
|
|
<windows>5</windows>
|
|
|
|
</number>
|
|
|
|
<repeatable>false</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.flapsDown(1)</script>
|
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.flapsDown(0)</script>
|
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</button>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Left brake</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>6</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>6</unix>
|
|
|
|
<windows>6</windows>
|
|
|
|
</number>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.applyBrakes(1, -1)</script>
|
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.applyBrakes(0, -1)</script>
|
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</button>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Right brake</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>7</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>7</unix>
|
|
|
|
<windows>7</windows>
|
|
|
|
</number>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.applyBrakes(1, 1)</script>
|
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.applyBrakes(0, 1)</script>
|
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</button>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Propeller Coarse</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>8</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>8</unix>
|
|
|
|
<windows>8</windows>
|
|
|
|
</number>
|
|
|
|
<repeatable>true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/controls/engines/engine/propeller-pitch</property>
|
|
|
|
<step type="double">0.1</step>
|
2010-02-03 23:02:14 +00:00
|
|
|
<min type="double">0</min>
|
2008-04-06 08:59:56 +00:00
|
|
|
<max type="double">1</max>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2005-06-15 03:25:59 +00:00
|
|
|
|
2008-04-06 08:59:56 +00:00
|
|
|
<button>
|
|
|
|
<desc>Propeller Fine</desc>
|
|
|
|
<number>
|
2011-08-05 13:26:41 +00:00
|
|
|
<mac>9</mac>
|
2008-04-06 08:59:56 +00:00
|
|
|
<unix>9</unix>
|
|
|
|
<windows>9</windows>
|
|
|
|
</number>
|
|
|
|
<repeatable>true</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/controls/engines/engine/propeller-pitch</property>
|
|
|
|
<step type="double">-0.1</step>
|
2010-02-03 23:02:14 +00:00
|
|
|
<min type="double">0</min>
|
2008-04-06 08:59:56 +00:00
|
|
|
<max type="double">1</max>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<!-- -->
|
|
|
|
</PropertyList>
|