- convert most joysticks to use brake wrappers (only js with sophisticated
settings are left unchanged for now) - set throttle wrapper in one config
This commit is contained in:
parent
7e81d93f28
commit
f51cbe102b
24 changed files with 242 additions and 604 deletions
|
@ -51,25 +51,13 @@ joystick, and that the first button is the trigger.
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -44,25 +44,13 @@ $Id$
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -44,25 +44,13 @@
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -113,39 +101,35 @@
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button n="8">
|
|
||||||
<desc>Right brake</desc>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<mod-up>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
</mod-up>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button n="7">
|
<button n="7">
|
||||||
<desc>Left brake</desc>
|
<desc>Left brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<button n="8">
|
||||||
|
<desc>Right brake</desc>
|
||||||
|
<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>
|
||||||
|
|
||||||
<button n="10">
|
<button n="10">
|
||||||
<desc>Gear up</desc>
|
<desc>Gear up</desc>
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
|
|
|
@ -126,25 +126,13 @@ $Id$
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -198,34 +186,30 @@ $Id$
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button n="11">
|
<button n="10">
|
||||||
<desc>Right brake</desc>
|
<desc>Left brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button n="10">
|
<button n="11">
|
||||||
<desc>Left brake</desc>
|
<desc>Right brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -135,25 +135,13 @@
|
||||||
<windows>0</windows>
|
<windows>0</windows>
|
||||||
</number>
|
</number>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -242,26 +230,6 @@
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button>
|
|
||||||
<desc>Right brake</desc>
|
|
||||||
<number>
|
|
||||||
<unix>7</unix>
|
|
||||||
<windows>7</windows>
|
|
||||||
</number>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<mod-up>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
</mod-up>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button>
|
<button>
|
||||||
<desc>Left brake</desc>
|
<desc>Left brake</desc>
|
||||||
<number>
|
<number>
|
||||||
|
@ -269,15 +237,31 @@
|
||||||
<windows>6</windows>
|
<windows>6</windows>
|
||||||
</number>
|
</number>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
</binding>
|
||||||
|
</mod-up>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button>
|
||||||
|
<desc>Right brake</desc>
|
||||||
|
<number>
|
||||||
|
<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>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -142,25 +142,13 @@ $Id$
|
||||||
<windows>0</windows>
|
<windows>0</windows>
|
||||||
</number>
|
</number>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -241,15 +229,13 @@ $Id$
|
||||||
<windows>5</windows>
|
<windows>5</windows>
|
||||||
</number>
|
</number>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -262,15 +248,13 @@ $Id$
|
||||||
<windows>6</windows>
|
<windows>6</windows>
|
||||||
</number>
|
</number>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -110,25 +110,13 @@
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -117,25 +117,13 @@ $Id$
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -187,31 +175,29 @@ $Id$
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button n="6">
|
<button n="6">
|
||||||
|
<desc>Left brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button n="7">
|
<button n="7">
|
||||||
|
<desc>Right brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -165,33 +165,29 @@ $Id$
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button n="6">
|
<button n="6">
|
||||||
<repeatable>true</repeatable>
|
<desc>Left brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-adjust</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<step>0.1</step>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value>0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button n="7">
|
<button n="7">
|
||||||
<repeatable>true</repeatable>
|
<desc>Right brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-adjust</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<step>0.1</step>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value>0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -160,25 +160,13 @@ Layout:
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -81,18 +81,12 @@
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>controls.applyBrakes(1)</script>
|
||||||
interpolate("/controls/gear/brake-left", 1, 0.075);
|
|
||||||
interpolate("/controls/gear/brake-right", 1, 0.075)
|
|
||||||
</script>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>controls.applyBrakes(0)</script>
|
||||||
interpolate("/controls/gear/brake-left", 0, 0.075);
|
|
||||||
interpolate("/controls/gear/brake-right", 0, 0.075)
|
|
||||||
</script>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -105,25 +105,13 @@
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -196,15 +184,13 @@
|
||||||
<button n="6">
|
<button n="6">
|
||||||
<desc>Right brake</desc>
|
<desc>Right brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -212,15 +198,13 @@
|
||||||
<button n="7">
|
<button n="7">
|
||||||
<desc>Left brake</desc>
|
<desc>Left brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -126,25 +126,13 @@ $Id:
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -202,15 +190,13 @@ $Id:
|
||||||
<button n="4">
|
<button n="4">
|
||||||
<desc>Right brake</desc>
|
<desc>Right brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -218,15 +204,13 @@ $Id:
|
||||||
<button n="6">
|
<button n="6">
|
||||||
<desc>Left brake</desc>
|
<desc>Left brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -105,25 +105,13 @@ $Id$
|
||||||
<button n="1">
|
<button n="1">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -181,15 +169,13 @@ $Id$
|
||||||
<button n="4">
|
<button n="4">
|
||||||
<desc>Right brake</desc>
|
<desc>Right brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -197,15 +183,13 @@ $Id$
|
||||||
<button n="6">
|
<button n="6">
|
||||||
<desc>Left brake</desc>
|
<desc>Left brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -136,25 +136,13 @@
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -162,15 +150,13 @@
|
||||||
<button n="2">
|
<button n="2">
|
||||||
<desc>Left Brake</desc>
|
<desc>Left Brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -178,15 +164,13 @@
|
||||||
<button n="3">
|
<button n="3">
|
||||||
<desc>Right Brake</desc>
|
<desc>Right Brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
************************************************************************
|
************************************************************************
|
||||||
* Bindings for Microsoft SideWinder Precision Pro joystick.
|
* Bindings for Microsoft SideWinder Precision Pro joystick.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Axis 0: ailerons
|
* Axis 0: ailerons
|
||||||
* Axis 1: elevator
|
* Axis 1: elevator
|
||||||
* Axis 2(Unix)/3(Win) (twist): rudder
|
* Axis 2(Unix)/3(Win) (twist): rudder
|
||||||
|
@ -152,25 +152,13 @@ $Id$
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -237,31 +225,27 @@ $Id$
|
||||||
<button n="6">
|
<button n="6">
|
||||||
<desc>Left brake</desc>
|
<desc>Left brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button n="7">
|
<button n="7">
|
||||||
<desc>Right brake</desc>
|
<desc>Right brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -269,10 +253,10 @@ $Id$
|
||||||
<button>
|
<button>
|
||||||
<desc>Gear Toggle.</desc>
|
<desc>Gear Toggle.</desc>
|
||||||
<number>
|
<number>
|
||||||
<unix>8</unix>
|
<unix>8</unix>
|
||||||
<mac>8</mac>
|
<mac>8</mac>
|
||||||
<windows>9</windows>
|
<windows>9</windows>
|
||||||
</number>
|
</number>
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
|
|
|
@ -57,25 +57,13 @@ $Id$
|
||||||
<button n="1">
|
<button n="1">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -84,15 +72,13 @@ $Id$
|
||||||
<button n="2">
|
<button n="2">
|
||||||
<desc>Left brake</desc>
|
<desc>Left brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -100,15 +86,13 @@ $Id$
|
||||||
<button n="3">
|
<button n="3">
|
||||||
<desc>Right brake</desc>
|
<desc>Right brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -116,25 +116,13 @@ $Id$
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -151,15 +139,13 @@ $Id$
|
||||||
<button n="2">
|
<button n="2">
|
||||||
<desc>Left Brake</desc>
|
<desc>Left Brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -167,15 +153,13 @@ $Id$
|
||||||
<button n="3">
|
<button n="3">
|
||||||
<desc>Right Brake</desc>
|
<desc>Right Brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -133,25 +133,13 @@ $Id$
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -197,25 +197,13 @@ $Id$
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -102,25 +102,13 @@ $Id$
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -47,52 +47,8 @@
|
||||||
<axis n="2">
|
<axis n="2">
|
||||||
<desc>Throttle</desc>
|
<desc>Throttle</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-scale</command>
|
<command>nasal</command>
|
||||||
<property>/controls/engines/engine[0]/throttle</property>
|
<script>controls.throttleAxis()</script>
|
||||||
<offset type="double">1.0</offset>
|
|
||||||
<factor type="double">0.5</factor>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-scale</command>
|
|
||||||
<property>/controls/engines/engine[1]/throttle</property>
|
|
||||||
<offset type="double">1.0</offset>
|
|
||||||
<factor type="double">0.5</factor>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-scale</command>
|
|
||||||
<property>/controls/engines/engine[2]/throttle</property>
|
|
||||||
<offset type="double">1.0</offset>
|
|
||||||
<factor type="double">0.5</factor>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-scale</command>
|
|
||||||
<property>/controls/engines/engine[3]/throttle</property>
|
|
||||||
<offset type="double">1.0</offset>
|
|
||||||
<factor type="double">0.5</factor>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-scale</command>
|
|
||||||
<property>/controls/engines/engine[4]/throttle</property>
|
|
||||||
<offset type="double">1.0</offset>
|
|
||||||
<factor type="double">0.5</factor>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-scale</command>
|
|
||||||
<property>/controls/engines/engine[5]/throttle</property>
|
|
||||||
<offset type="double">1.0</offset>
|
|
||||||
<factor type="double">0.5</factor>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-scale</command>
|
|
||||||
<property>/controls/engines/engine[6]/throttle</property>
|
|
||||||
<offset type="double">1.0</offset>
|
|
||||||
<factor type="double">0.5</factor>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-scale</command>
|
|
||||||
<property>/controls/engines/engine[7]/throttle</property>
|
|
||||||
<offset type="double">1.0</offset>
|
|
||||||
<factor type="double">0.5</factor>
|
|
||||||
</binding>
|
</binding>
|
||||||
</axis>
|
</axis>
|
||||||
|
|
||||||
|
@ -148,25 +104,13 @@
|
||||||
<button n="0">
|
<button n="0">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -224,15 +168,13 @@
|
||||||
<button n="4">
|
<button n="4">
|
||||||
<desc>Right brake</desc>
|
<desc>Right brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(1, 1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-right</property>
|
<script>controls.applyBrakes(0, 1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
@ -240,15 +182,13 @@
|
||||||
<button n="5">
|
<button n="5">
|
||||||
<desc>Left brake</desc>
|
<desc>Left brake</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1, -1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0, -1)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -93,18 +93,12 @@ Eric Hathaway <hathaway@uplink.net> : "Nasal-ized" the joystick configuration,
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>controls.applyBrakes(1)</script>
|
||||||
interpolate("/controls/gear/brake-left", 1, 0.075);
|
|
||||||
interpolate("/controls/gear/brake-right", 1, 0.075)
|
|
||||||
</script>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>controls.applyBrakes(0)</script>
|
||||||
interpolate("/controls/gear/brake-left", 0, 0.075);
|
|
||||||
interpolate("/controls/gear/brake-right", 0, 0.075)
|
|
||||||
</script>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -102,25 +102,13 @@
|
||||||
<button n="1">
|
<button n="1">
|
||||||
<desc>Brakes</desc>
|
<desc>Brakes</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(1)</script>
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">1.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
<mod-up>
|
<mod-up>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/controls/gear/brake-left</property>
|
<script>controls.applyBrakes(0)</script>
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/controls/gear/brake-right</property>
|
|
||||||
<value type="double">0.0</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up>
|
</mod-up>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in a new issue