| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
<PropertyList> |
| 12 |
|
| 13 |
<name>MetalStrik 3D</name> |
| 14 |
|
| 15 |
<axis n="0"> |
| 16 |
<desc>Aileron</desc> |
| 17 |
<binding> |
| 18 |
<command>property-scale</command> |
| 19 |
<property>/controls/flight/aileron</property> |
| 20 |
<power type="double">2</power> |
| 21 |
</binding> |
| 22 |
</axis> |
| 23 |
|
| 24 |
<axis n="1"> |
| 25 |
<desc>Elevator</desc> |
| 26 |
<binding> |
| 27 |
<command>property-scale</command> |
| 28 |
<property>/controls/flight/elevator</property> |
| 29 |
<factor type="double">-1.0</factor> |
| 30 |
<power type="double">2</power> |
| 31 |
</binding> |
| 32 |
</axis> |
| 33 |
|
| 34 |
|
| 35 |
<axis n="3"> |
| 36 |
<desc>Throttle</desc> |
| 37 |
<binding> |
| 38 |
<command>nasal</command> |
| 39 |
<script>controls.throttleAxis()</script> |
| 40 |
</binding> |
| 41 |
</axis> |
| 42 |
|
| 43 |
<axis n="2"> |
| 44 |
<desc>Rudder</desc> |
| 45 |
<binding> |
| 46 |
<command>property-scale</command> |
| 47 |
<property>/controls/flight/rudder</property> |
| 48 |
<power type="double">2</power> |
| 49 |
</binding> |
| 50 |
</axis> |
| 51 |
|
| 52 |
<button n="0"> |
| 53 |
<desc>Brakes</desc> |
| 54 |
<binding> |
| 55 |
<command>nasal</command> |
| 56 |
<script>controls.applyBrakes(1)</script> |
| 57 |
</binding> |
| 58 |
<mod-up> |
| 59 |
<binding> |
| 60 |
<command>nasal</command> |
| 61 |
<script>controls.applyBrakes(0)</script> |
| 62 |
</binding> |
| 63 |
</mod-up> |
| 64 |
</button> |
| 65 |
|
| 66 |
|
| 67 |
<button n="1"> |
| 68 |
<desc>Elevator trim Down</desc> |
| 69 |
<repeatable type="bool">true</repeatable> |
| 70 |
<binding> |
| 71 |
<command>nasal</command> |
| 72 |
<script>controls.elevatorTrim(-1)</script> |
| 73 |
</binding> |
| 74 |
</button> |
| 75 |
|
| 76 |
<button n="2"> |
| 77 |
<desc>Elevator trim Up</desc> |
| 78 |
<repeatable type="bool">true</repeatable> |
| 79 |
<binding> |
| 80 |
<command>nasal</command> |
| 81 |
<script>controls.elevatorTrim(1)</script> |
| 82 |
</binding> |
| 83 |
</button> |
| 84 |
|
| 85 |
|
| 86 |
<axis n="4"> |
| 87 |
<desc>View Direction</desc> |
| 88 |
<number> |
| 89 |
<unix>4</unix> |
| 90 |
<windows>6</windows> |
| 91 |
</number> |
| 92 |
<low> |
| 93 |
<desc>View left</desc> |
| 94 |
<repeatable>true</repeatable> |
| 95 |
<binding> |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
<command>nasal</command> |
| 103 |
<script> |
| 104 |
var valueDelta = -3.0; |
| 105 |
if (getprop("/sim/current-view/type") == "lookat") |
| 106 |
{ |
| 107 |
valueDelta = 3.0; |
| 108 |
} |
| 109 |
setprop("/sim/current-view/heading-offset-deg", getprop("/sim/current-view/heading-offset-deg") - valueDelta); |
| 110 |
</script> |
| 111 |
</binding> |
| 112 |
</low> |
| 113 |
<high> |
| 114 |
<desc>View right</desc> |
| 115 |
<repeatable>true</repeatable> |
| 116 |
<binding> |
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
<command>nasal</command> |
| 124 |
<script> |
| 125 |
var valueDelta = -3.0; |
| 126 |
if (getprop("/sim/current-view/type") == "lookat") |
| 127 |
{ |
| 128 |
valueDelta = 3.0; |
| 129 |
} |
| 130 |
setprop("/sim/current-view/heading-offset-deg", getprop("/sim/current-view/heading-offset-deg") + valueDelta); |
| 131 |
</script> |
| 132 |
</binding> |
| 133 |
</high> |
| 134 |
</axis> |
| 135 |
|
| 136 |
<axis n="5"> |
| 137 |
<desc>View Elevation</desc> |
| 138 |
<number> |
| 139 |
<unix>5</unix> |
| 140 |
<windows>7</windows> |
| 141 |
</number> |
| 142 |
<low> |
| 143 |
<desc>View down</desc> |
| 144 |
<repeatable>true</repeatable> |
| 145 |
<binding> |
| 146 |
<command>property-adjust</command> |
| 147 |
<property>/sim/current-view/goal-pitch-offset-deg</property> |
| 148 |
<step type="double">3.0</step> |
| 149 |
</binding> |
| 150 |
</low> |
| 151 |
<high> |
| 152 |
<desc>View up</desc> |
| 153 |
<repeatable>true</repeatable> |
| 154 |
<binding> |
| 155 |
<command>property-adjust</command> |
| 156 |
<property>/sim/current-view/goal-pitch-offset-deg</property> |
| 157 |
<step type="double">-3.0</step> |
| 158 |
</binding> |
| 159 |
</high> |
| 160 |
</axis> |
| 161 |
|
| 162 |
<button n="3"> |
| 163 |
<desc>Flaps down</desc> |
| 164 |
<binding> |
| 165 |
<command>nasal</command> |
| 166 |
<script>controls.flapsDown(1)</script> |
| 167 |
</binding> |
| 168 |
<mod-up> |
| 169 |
<binding> |
| 170 |
<command>nasal</command> |
| 171 |
<script>controls.flapsDown(0)</script> |
| 172 |
</binding> |
| 173 |
</mod-up> |
| 174 |
</button> |
| 175 |
|
| 176 |
<button n="4"> |
| 177 |
<desc>Flaps up</desc> |
| 178 |
<repeatable>false</repeatable> |
| 179 |
<binding> |
| 180 |
<command>nasal</command> |
| 181 |
<script>controls.flapsDown(-1)</script> |
| 182 |
</binding> |
| 183 |
<mod-up> |
| 184 |
<binding> |
| 185 |
<command>nasal</command> |
| 186 |
<script>controls.flapsDown(0)</script> |
| 187 |
</binding> |
| 188 |
</mod-up> |
| 189 |
</button> |
| 190 |
|
| 191 |
|
| 192 |
<button n="5"> |
| 193 |
<desc>Cycle View</desc> |
| 194 |
<repeatable>false</repeatable> |
| 195 |
<binding> |
| 196 |
<command>nasal</command> |
| 197 |
<script> |
| 198 |
view.stepView(0); |
| 199 |
#gui.popupTip(sprintf("View index: %d, view type: %s", getprop("sim/current-view/view-number"), getprop("/sim/current-view/type"))); |
| 200 |
</script> |
| 201 |
</binding> |
| 202 |
</button> |
| 203 |
|
| 204 |
<button n="6"> |
| 205 |
<desc>Cycle View</desc> |
| 206 |
<repeatable>false</repeatable> |
| 207 |
<binding> |
| 208 |
<command>nasal</command> |
| 209 |
<script> |
| 210 |
view.stepView(1); |
| 211 |
#gui.popupTip(sprintf("View index: %d, view type: %s", getprop("sim/current-view/view-number"), getprop("/sim/current-view/type"))); |
| 212 |
</script> |
| 213 |
</binding> |
| 214 |
</button> |
| 215 |
|
| 216 |
<button n="7"> |
| 217 |
<desc>Landing Gear Up</desc> |
| 218 |
<repeatable>false</repeatable> |
| 219 |
<binding> |
| 220 |
<command>nasal</command> |
| 221 |
<script>controls.gearDown(-1)</script> |
| 222 |
</binding> |
| 223 |
</button> |
| 224 |
|
| 225 |
<button n="8"> |
| 226 |
<desc>Landing Gear Down</desc> |
| 227 |
<repeatable>false</repeatable> |
| 228 |
<binding> |
| 229 |
<command>nasal</command> |
| 230 |
<script>controls.gearDown(1)</script> |
| 231 |
</binding> |
| 232 |
</button> |
| 233 |
|
| 234 |
<button n="9"> |
| 235 |
<desc>Aileron trim Left</desc> |
| 236 |
<repeatable type="bool">true</repeatable> |
| 237 |
<binding> |
| 238 |
<command>nasal</command> |
| 239 |
<script>controls.aileronTrim(-1)</script> |
| 240 |
</binding> |
| 241 |
</button> |
| 242 |
|
| 243 |
<button n="10"> |
| 244 |
<desc>Aileron trim Right</desc> |
| 245 |
<repeatable type="bool">true</repeatable> |
| 246 |
<binding> |
| 247 |
<command>nasal</command> |
| 248 |
<script>controls.aileronTrim(1)</script> |
| 249 |
</binding> |
| 250 |
</button> |
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
<button n="11"> |
| 257 |
<desc>Parking Brake Off</desc> |
| 258 |
<repeatable>false</repeatable> |
| 259 |
<binding> |
| 260 |
<command>nasal</command> |
| 261 |
<script> |
| 262 |
var p = "/controls/gear/brake-parking"; |
| 263 |
setprop(p, 0); |
| 264 |
return 0; |
| 265 |
</script> |
| 266 |
</binding> |
| 267 |
</button> |
| 268 |
|
| 269 |
<button n="12"> |
| 270 |
<desc>Parking Brake On</desc> |
| 271 |
<repeatable>false</repeatable> |
| 272 |
<binding> |
| 273 |
<command>nasal</command> |
| 274 |
<script> |
| 275 |
var p = "/controls/gear/brake-parking"; |
| 276 |
setprop(p, 1); |
| 277 |
return 1; |
| 278 |
</script> |
| 279 |
</binding> |
| 280 |
</button> |
| 281 |
|
| 282 |
</PropertyList> |
| 283 |
|
| 284 |
|