| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
<PropertyList> |
| 27 |
|
| 28 |
<name>Analog 3-axis 4-button 1-hat CHF joystick</name> |
| 29 |
|
| 30 |
|
| 31 |
<axis n="0"> |
| 32 |
<desc>Aileron</desc> |
| 33 |
<binding> |
| 34 |
<command>property-scale</command> |
| 35 |
<property>/controls/flight/aileron</property> |
| 36 |
<power type="double">3</power> |
| 37 |
</binding> |
| 38 |
</axis> |
| 39 |
|
| 40 |
<axis n="1"> |
| 41 |
<desc>Elevator</desc> |
| 42 |
<binding> |
| 43 |
<command>property-scale</command> |
| 44 |
<property>/controls/flight/elevator</property> |
| 45 |
<factor type="double">-1.0</factor> |
| 46 |
<power type="double">3</power> |
| 47 |
</binding> |
| 48 |
</axis> |
| 49 |
|
| 50 |
<axis n="2"> |
| 51 |
<desc>Throttle</desc> |
| 52 |
<binding> |
| 53 |
<command>nasal</command> |
| 54 |
<script>controls.throttleAxis()</script> |
| 55 |
</binding> |
| 56 |
</axis> |
| 57 |
|
| 58 |
<axis n="3"> |
| 59 |
<desc>Rudder</desc> |
| 60 |
<binding><command>null</command></binding> |
| 61 |
<interval-sec type="double">0.02</interval-sec> |
| 62 |
<low> |
| 63 |
<repeatable type="bool">true</repeatable> |
| 64 |
<binding> |
| 65 |
<command>property-adjust</command> |
| 66 |
<property>/controls/flight/rudder</property> |
| 67 |
<step type="double">-0.02</step> |
| 68 |
</binding> |
| 69 |
</low> |
| 70 |
<high> |
| 71 |
<repeatable type="bool">true</repeatable> |
| 72 |
<binding> |
| 73 |
<command>property-adjust</command> |
| 74 |
<property>/controls/flight/rudder</property> |
| 75 |
<step type="double">0.02</step> |
| 76 |
</binding> |
| 77 |
</high> |
| 78 |
</axis> |
| 79 |
|
| 80 |
<axis n="4"> |
| 81 |
<desc>Elevator trim</desc> |
| 82 |
<binding><command>null</command></binding> |
| 83 |
<interval-sec type="double">0.02</interval-sec> |
| 84 |
<low> |
| 85 |
<repeatable type="bool">true</repeatable> |
| 86 |
<binding> |
| 87 |
<command>property-adjust</command> |
| 88 |
<property>/controls/flight/elevator-trim</property> |
| 89 |
<step type="double">0.001</step> |
| 90 |
</binding> |
| 91 |
</low> |
| 92 |
<high> |
| 93 |
<repeatable type="bool">true</repeatable> |
| 94 |
<binding> |
| 95 |
<command>property-adjust</command> |
| 96 |
<property>/controls/flight/elevator-trim</property> |
| 97 |
<step type="double">-0.001</step> |
| 98 |
</binding> |
| 99 |
</high> |
| 100 |
</axis> |
| 101 |
|
| 102 |
<button n="0"> |
| 103 |
<desc>Brakes</desc> |
| 104 |
<binding> |
| 105 |
<command>nasal</command> |
| 106 |
<script>controls.applyBrakes(1)</script> |
| 107 |
</binding> |
| 108 |
<mod-up> |
| 109 |
<binding> |
| 110 |
<command>nasal</command> |
| 111 |
<script>controls.applyBrakes(0)</script> |
| 112 |
</binding> |
| 113 |
</mod-up> |
| 114 |
</button> |
| 115 |
|
| 116 |
<button n="1"> |
| 117 |
<desc>Center rudder</desc> |
| 118 |
<binding> |
| 119 |
<command>property-assign</command> |
| 120 |
<property>/controls/flight/rudder</property> |
| 121 |
<value type="double">0.0</value> |
| 122 |
</binding> |
| 123 |
</button> |
| 124 |
|
| 125 |
<button n="2"> |
| 126 |
<desc>Flaps up</desc> |
| 127 |
<binding> |
| 128 |
<command>nasal</command> |
| 129 |
<script>controls.flapsDown(-1)</script> |
| 130 |
</binding> |
| 131 |
<mod-up> |
| 132 |
<binding> |
| 133 |
<command>nasal</command> |
| 134 |
<script>controls.flapsDown(0)</script> |
| 135 |
</binding> |
| 136 |
</mod-up> |
| 137 |
</button> |
| 138 |
|
| 139 |
<button n="3"> |
| 140 |
<desc>Flaps down</desc> |
| 141 |
<binding> |
| 142 |
<command>nasal</command> |
| 143 |
<script>controls.flapsDown(1)</script> |
| 144 |
</binding> |
| 145 |
<mod-up> |
| 146 |
<binding> |
| 147 |
<command>nasal</command> |
| 148 |
<script>controls.flapsDown(0)</script> |
| 149 |
</binding> |
| 150 |
</mod-up> |
| 151 |
</button> |
| 152 |
|
| 153 |
</PropertyList> |
| 154 |
|
| 155 |
|