1
0
Fork 0

Add user-friendly names for the axes and buttons.

This commit is contained in:
Stuart Buchanan 2012-06-30 20:36:29 +01:00
parent 0a5fde86b0
commit 83e96a30c2

View file

@ -32,6 +32,7 @@
<name>Pro Flight Cessna Yoke</name> <name>Pro Flight Cessna Yoke</name>
<axis n="0"> <axis n="0">
<name>Yoke left/right</name>
<desc>Aileron</desc> <desc>Aileron</desc>
<binding> <binding>
<command>property-scale</command> <command>property-scale</command>
@ -39,6 +40,7 @@
</binding> </binding>
</axis> </axis>
<axis n="1"> <axis n="1">
<name>Yoke forward/backwards</name>
<desc>Elevator</desc> <desc>Elevator</desc>
<binding> <binding>
<command>property-scale</command> <command>property-scale</command>
@ -48,6 +50,7 @@
</axis> </axis>
<!-- Throttle Quadrant --> <!-- Throttle Quadrant -->
<axis n="2"> <axis n="2">
<name>Black Lever</name>
<desc>Throttle</desc> <desc>Throttle</desc>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
@ -59,6 +62,7 @@
<unix>3</unix> <unix>3</unix>
<windows>4</windows> <windows>4</windows>
</number> </number>
<name>Blue lever</name>
<desc>Propellor Pitch</desc> <desc>Propellor Pitch</desc>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
@ -70,6 +74,7 @@
<unix>4</unix> <unix>4</unix>
<windows>3</windows> <windows>3</windows>
</number> </number>
<name>Red lever</name>
<desc>Mixture</desc> <desc>Mixture</desc>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
@ -82,6 +87,7 @@
<unix>5</unix> <unix>5</unix>
<windows>6</windows> <windows>6</windows>
</number> </number>
<name>Coolie hat left/right</name>
<desc>View Heading</desc> <desc>View Heading</desc>
<low> <low>
<repeatable>true</repeatable> <repeatable>true</repeatable>
@ -110,6 +116,7 @@
<number> <number>
<unix>6</unix> <unix>6</unix>
</number> </number>
<name>Coolie hat up/down</name>
<desc>View Elevation</desc> <desc>View Elevation</desc>
<low> <low>
<repeatable>true</repeatable> <repeatable>true</repeatable>
@ -138,6 +145,7 @@
<number> <number>
<windows>7</windows> <windows>7</windows>
</number> </number>
<name>Coolie hat up/down</name>
<desc>View Elevation</desc> <desc>View Elevation</desc>
<low> <low>
<repeatable>true</repeatable> <repeatable>true</repeatable>
@ -167,11 +175,11 @@
<!-- Red Button on left stalk --> <!-- Red Button on left stalk -->
<button n="0"> <button n="0">
<name>PTT</name> <name>Red button</name>
<desc>Push To Talk (FGCom)</desc> <desc>Push To Talk (FGCom)</desc>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>controls.ptt(1)</script> <script>controls.ptt(1)</script>
</binding> </binding>
<mod-up> <mod-up>
<binding> <binding>
@ -179,45 +187,48 @@
<script>controls.ptt(0)</script> <script>controls.ptt(0)</script>
</binding> </binding>
</mod-up> </mod-up>
</button> </button>
<!-- Black button on right stalk --> <!-- Black button on right stalk -->
<button n="1"> <button n="1">
<desc>Reset view</desc> <name>Black button</name>
<repeatable>false</repeatable> <desc>Reset view</desc>
<binding> <repeatable>false</repeatable>
<command>nasal</command> <binding>
<script> <command>nasal</command>
setprop("/sim/current-view/view-number", 0); <script>
setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/view[0]/config/pitch-offset-deg")); setprop("/sim/current-view/view-number", 0);
setprop("/sim/current-view/goal-heading-offset-deg", 0.0); setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/view[0]/config/pitch-offset-deg"));
#setprop("/sim/current-view/field-of-view", getprop("/sim/view/config/default-field-of-view-deg")); setprop("/sim/current-view/goal-heading-offset-deg", 0.0);
</script> #setprop("/sim/current-view/field-of-view", getprop("/sim/view/config/default-field-of-view-deg"));
</binding> </script>
</binding>
</button> </button>
<!-- Left hand four-way switch --> <!-- Left hand four-way switch -->
<button n="2"> <button n="2">
<desc>View Decrease</desc> <name>Left rocker switch up</name>
<repeatable>true</repeatable> <desc>View Decrease</desc>
<binding> <repeatable>true</repeatable>
<command>nasal</command> <binding>
<script>view.decrease(0.75)</script> <command>nasal</command>
</binding> <script>view.decrease(0.75)</script>
</button> </binding>
</button>
<button n="3"> <button n="3">
<desc>View Increase</desc> <name>Left rocker switch down</name>
<repeatable>true</repeatable> <desc>View Increase</desc>
<binding> <repeatable>true</repeatable>
<command>nasal</command> <binding>
<script>view.increase(0.75)</script> <command>nasal</command>
</binding> <script>view.increase(0.75)</script>
</button> </binding>
</button>
<!-- Right hand vertical two-way switch --> <!-- Right hand vertical two-way switch -->
<button n="4"> <button n="4">
<name>Right vertical rocker switch up</name>
<desc>Elevator trim up</desc> <desc>Elevator trim up</desc>
<repeatable>true</repeatable> <repeatable>true</repeatable>
<binding> <binding>
@ -226,6 +237,7 @@
</binding> </binding>
</button> </button>
<button n="5"> <button n="5">
<name>Right vertical rocker switch down</name>
<desc>Elevator trim down</desc> <desc>Elevator trim down</desc>
<repeatable>true</repeatable> <repeatable>true</repeatable>
<binding> <binding>
@ -234,9 +246,9 @@
</binding> </binding>
</button> </button>
<!-- Right hand horizontal two-way switch -->
<!-- Right hand horizontal two-way switch -->
<button n="6"> <button n="6">
<name>Right horizontal rocker switch right</name>
<desc>Rudder trim right</desc> <desc>Rudder trim right</desc>
<repeatable>true</repeatable> <repeatable>true</repeatable>
<binding> <binding>
@ -245,6 +257,7 @@
</binding> </binding>
</button> </button>
<button n="7"> <button n="7">
<name>Right horizontal rocker switch left</name>
<desc>Rudder trim left</desc> <desc>Rudder trim left</desc>
<repeatable>true</repeatable> <repeatable>true</repeatable>
<binding> <binding>
@ -253,29 +266,30 @@
</binding> </binding>
</button> </button>
<!-- Left four-way switch - horizontal --> <!-- Left four-way switch - horizontal -->
<button n="11"> <button n="11">
<desc>View Cycle Backwards</desc> <name>Right rocker switch left</name>
<repeatable>false</repeatable> <desc>View Cycle Backwards</desc>
<binding> <repeatable>false</repeatable>
<command>nasal</command> <binding>
<script>view.stepView(-1)</script> <command>nasal</command>
</binding> <script>view.stepView(-1)</script>
</button> </binding>
</button>
<button n="12">
<desc>View Cycle Forwards</desc>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>view.stepView(1)</script>
</binding>
</button>
<button n="12">
<name>Right rocker switch right</name>
<desc>View Cycle Forwards</desc>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>view.stepView(1)</script>
</binding>
</button>
<!-- Buttons on the throttle Quadrant --> <!-- Buttons on the throttle Quadrant -->
<button n="13"> <!-- Labled as T1 --> <button n="13"> <!-- Labled as T1 -->
<name>T1</name>
<desc>Flaps up</desc> <desc>Flaps up</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
@ -290,6 +304,7 @@
</mod-up> </mod-up>
</button> </button>
<button n="14"> <!-- Labled as T2 --> <button n="14"> <!-- Labled as T2 -->
<name>T2</name>
<desc>Flaps down</desc> <desc>Flaps down</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
@ -304,6 +319,7 @@
</mod-up> </mod-up>
</button> </button>
<button n="15"> <!-- Labled as T3 --> <button n="15"> <!-- Labled as T3 -->
<name>T3</name>
<desc>Gear up</desc> <desc>Gear up</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
@ -318,6 +334,7 @@
</mod-up> </mod-up>
</button> </button>
<button n="16"> <!-- Labled as T4 --> <button n="16"> <!-- Labled as T4 -->
<name>T4</name>
<desc>Gear down</desc> <desc>Gear down</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
@ -332,6 +349,7 @@
</mod-up> </mod-up>
</button> </button>
<button n="17"> <!-- Labled as T5 --> <button n="17"> <!-- Labled as T5 -->
<name>T5</name>
<desc>Retract Spoilers</desc> <desc>Retract Spoilers</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
@ -347,6 +365,7 @@
</button> </button>
<button n="18"> <!-- Labled as T6 --> <button n="18"> <!-- Labled as T6 -->
<name>T6</name>
<desc>Deploy Spoilers</desc> <desc>Deploy Spoilers</desc>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
@ -361,7 +380,8 @@
</mod-up> </mod-up>
</button> </button>
<button n="22"> <button n="22">
<desc>Yoke Mode 0</desc> <name>Yoke mode switch left</name>
<desc>Coolie hat sensitivity low</desc>
<repeatable type="bool">false</repeatable> <repeatable type="bool">false</repeatable>
<binding> <binding>
<command>property-assign</command> <command>property-assign</command>
@ -370,7 +390,8 @@
</binding> </binding>
</button> </button>
<button n="23"> <button n="23">
<desc>Yoke Mode 1</desc> <name>Yoke mode switch middle</name>
<desc>Coolie hat sensitivity medium</desc>
<repeatable type="bool">false</repeatable> <repeatable type="bool">false</repeatable>
<binding> <binding>
<command>property-assign</command> <command>property-assign</command>
@ -379,7 +400,8 @@
</binding> </binding>
</button> </button>
<button n="24"> <button n="24">
<desc>Yoke Mode 2</desc> <name>Yoke mode switch right</name>
<desc>Coolie hat sensitivity high</desc>
<repeatable type="bool">false</repeatable> <repeatable type="bool">false</repeatable>
<binding> <binding>
<command>property-assign</command> <command>property-assign</command>