| 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 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
<PropertyList> |
| 189 |
|
| 190 |
<name>Saitek X52</name> |
| 191 |
<name>Saitek X52 Flight Controller USB</name> |
| 192 |
<name>Saitek X52 Flight Controller</name> |
| 193 |
<name>Saitek X52 Flight Control Stick </name> |
| 194 |
<name>Saitek X52 Flight Stick (USB)</name> |
| 195 |
<name>Saitek X52 Flight Control System</name> |
| 196 |
<name>Saitek Saitek X52</name> |
| 197 |
<name>Saitek Saitek X52 Flight Stick (USB)</name> |
| 198 |
<name>Saitek Saitek X52 Flight Control Stick</name> |
| 199 |
<name>Saitek Saitek X52 Flight Control System</name> |
| 200 |
<name>X52 H.O.T.A.S.</name> |
| 201 |
|
| 202 |
<axis> |
| 203 |
<desc>Aileron</desc> |
| 204 |
<number> |
| 205 |
<unix>0</unix> |
| 206 |
<mac>0</mac> |
| 207 |
<windows>0</windows> |
| 208 |
</number> |
| 209 |
<binding> |
| 210 |
<command>property-scale</command> |
| 211 |
<property>/controls/flight/aileron</property> |
| 212 |
</binding> |
| 213 |
</axis> |
| 214 |
|
| 215 |
<axis> |
| 216 |
<desc>Elevator</desc> |
| 217 |
<number> |
| 218 |
<unix>1</unix> |
| 219 |
<mac>1</mac> |
| 220 |
<windows>1</windows> |
| 221 |
</number> |
| 222 |
<binding> |
| 223 |
<command>property-scale</command> |
| 224 |
<property>/controls/flight/elevator</property> |
| 225 |
<factor type="double">-1.0</factor> |
| 226 |
</binding> |
| 227 |
</axis> |
| 228 |
|
| 229 |
<axis> |
| 230 |
<desc>Throttle</desc> |
| 231 |
<number> |
| 232 |
<unix>2</unix> |
| 233 |
<mac>2</mac> |
| 234 |
<windows>2</windows> |
| 235 |
</number> |
| 236 |
<binding> |
| 237 |
<command>nasal</command> |
| 238 |
<script>controls.throttleAxis()</script> |
| 239 |
</binding> |
| 240 |
</axis> |
| 241 |
|
| 242 |
<axis> |
| 243 |
<desc>Mixture</desc> |
| 244 |
<number> |
| 245 |
<unix>3</unix> |
| 246 |
<mac>5</mac> |
| 247 |
<windows>5</windows> |
| 248 |
</number> |
| 249 |
<binding> |
| 250 |
<command>nasal</command> |
| 251 |
<script>controls.mixtureAxis(-1)</script> |
| 252 |
</binding> |
| 253 |
</axis> |
| 254 |
|
| 255 |
|
| 256 |
<axis> |
| 257 |
<desc>unassigned (was: Propeller RPM)</desc> |
| 258 |
<number> |
| 259 |
<unix>4</unix> |
| 260 |
<mac>8</mac> |
| 261 |
<windows>8</windows> |
| 262 |
</number> |
| 263 |
<binding> |
| 264 |
<command>nasal</command> |
| 265 |
<script> |
| 266 |
####controls.propellerAxis(-1) |
| 267 |
</script> |
| 268 |
</binding> |
| 269 |
</axis> |
| 270 |
|
| 271 |
|
| 272 |
<axis> |
| 273 |
<desc>Rudder</desc> |
| 274 |
<number> |
| 275 |
<unix>5</unix> |
| 276 |
<mac>3</mac> |
| 277 |
<windows>3</windows> |
| 278 |
</number> |
| 279 |
<binding> |
| 280 |
<command>property-scale</command> |
| 281 |
<property>/controls/flight/rudder</property> |
| 282 |
</binding> |
| 283 |
</axis> |
| 284 |
|
| 285 |
|
| 286 |
<axis> |
| 287 |
<desc>Propeller RPM</desc> |
| 288 |
<number> |
| 289 |
<unix>6</unix> |
| 290 |
<mac>4</mac> |
| 291 |
<windows>4</windows> |
| 292 |
</number> |
| 293 |
<binding> |
| 294 |
<command>nasal</command> |
| 295 |
<script>controls.propellerAxis(-1)</script> |
| 296 |
</binding> |
| 297 |
</axis> |
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
<axis> |
| 302 |
<desc>View Pan Left/Right (D-shift: move PoV)</desc> |
| 303 |
<number> |
| 304 |
<unix>7</unix> |
| 305 |
<mac>6</mac> |
| 306 |
<windows>6</windows> |
| 307 |
</number> |
| 308 |
<low> |
| 309 |
<repeatable>true</repeatable> |
| 310 |
<binding> |
| 311 |
<command>nasal</command> |
| 312 |
<script> |
| 313 |
if (getprop("/sim/gui/d-button")){ |
| 314 |
setprop("/sim/current-view/x-offset-m", |
| 315 |
-0.01 + getprop("/sim/current-view/x-offset-m")); |
| 316 |
} else { |
| 317 |
view.panViewDir(1) |
| 318 |
} |
| 319 |
</script> |
| 320 |
</binding> |
| 321 |
</low> |
| 322 |
<high> |
| 323 |
<repeatable>true</repeatable> |
| 324 |
<binding> |
| 325 |
<command>nasal</command> |
| 326 |
<script> |
| 327 |
if (getprop("/sim/gui/d-button")){ |
| 328 |
setprop("/sim/current-view/x-offset-m", |
| 329 |
0.01 + getprop("/sim/current-view/x-offset-m")); |
| 330 |
} else { |
| 331 |
view.panViewDir(-1) |
| 332 |
} |
| 333 |
</script> |
| 334 |
</binding> |
| 335 |
</high> |
| 336 |
</axis> |
| 337 |
|
| 338 |
<axis> |
| 339 |
<desc>View Tilt Up/Down (D-shift: move PoV)</desc> |
| 340 |
<number> |
| 341 |
<unix>8</unix> |
| 342 |
<mac>7</mac> |
| 343 |
<windows>7</windows> |
| 344 |
</number> |
| 345 |
<low> |
| 346 |
<repeatable>true</repeatable> |
| 347 |
<binding> |
| 348 |
<command>nasal</command> |
| 349 |
<script> |
| 350 |
if (getprop("/sim/gui/d-button")){ |
| 351 |
setprop("/sim/current-view/y-offset-m", |
| 352 |
0.01 + getprop("/sim/current-view/y-offset-m")); |
| 353 |
} else { |
| 354 |
view.panViewPitch(1) |
| 355 |
} |
| 356 |
</script> |
| 357 |
</binding> |
| 358 |
</low> |
| 359 |
<high> |
| 360 |
<repeatable>true</repeatable> |
| 361 |
<binding> |
| 362 |
<command>nasal</command> |
| 363 |
<script> |
| 364 |
if (getprop("/sim/gui/d-button")){ |
| 365 |
setprop("/sim/current-view/y-offset-m", |
| 366 |
-0.01 + getprop("/sim/current-view/y-offset-m")); |
| 367 |
} else { |
| 368 |
view.panViewPitch(-1) |
| 369 |
} |
| 370 |
</script> |
| 371 |
</binding> |
| 372 |
</high> |
| 373 |
</axis> |
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
<button n="1"> |
| 379 |
<desc>(FIRE) : Auto-Coordination off (D-shift: on)</desc> |
| 380 |
<binding> |
| 381 |
<command>nasal</command> |
| 382 |
<script> |
| 383 |
setprop("/controls/flight/auto-coordination", ! !getprop("/sim/gui/d-button")); |
| 384 |
</script> |
| 385 |
</binding> |
| 386 |
</button> |
| 387 |
|
| 388 |
|
| 389 |
<button n="3"> |
| 390 |
<desc>(B) : Zoom out i.e. increase field of view (D-shift: zoom in)</desc> |
| 391 |
<repeatable type="bool">true</repeatable> |
| 392 |
<binding> |
| 393 |
<command>nasal</command> |
| 394 |
<script> |
| 395 |
if ( getprop("/sim/gui/d-button") ) { |
| 396 |
view.decrease(0.5) # zoom in |
| 397 |
} else { |
| 398 |
view.increase(0.5) # zoom out |
| 399 |
} |
| 400 |
</script> |
| 401 |
</binding> |
| 402 |
</button> |
| 403 |
|
| 404 |
<button n="4"> |
| 405 |
<desc>(C) : Reset View</desc> |
| 406 |
<binding> |
| 407 |
<command>nasal</command> |
| 408 |
<script> |
| 409 |
view.resetView(); # only resets tilt/pan/zoom: |
| 410 |
# must reset x/y/z view point separately |
| 411 |
vn = getprop("/sim/current-view/view-number"); |
| 412 |
conf = sprintf("/sim/view[%d]/config", vn); |
| 413 |
foreach (parm ; ["x-offset-m", "y-offset-m", "z-offset-m"]) { |
| 414 |
setprop("/sim/current-view/", parm, getprop(conf, parm)); |
| 415 |
} |
| 416 |
</script> |
| 417 |
</binding> |
| 418 |
</button> |
| 419 |
|
| 420 |
|
| 421 |
<button n="5"> |
| 422 |
<desc>(Pinky) : Brakes</desc> |
| 423 |
<binding> |
| 424 |
<command>nasal</command> |
| 425 |
<script>controls.applyBrakes(1)</script> |
| 426 |
</binding> |
| 427 |
<mod-up> |
| 428 |
<binding> |
| 429 |
<command>nasal</command> |
| 430 |
<script>controls.applyBrakes(0)</script> |
| 431 |
</binding> |
| 432 |
</mod-up> |
| 433 |
</button> |
| 434 |
|
| 435 |
|
| 436 |
<button n="6"> |
| 437 |
<desc>(D) : Shift Key</desc> |
| 438 |
<binding> |
| 439 |
<command>nasal</command> |
| 440 |
<script> |
| 441 |
setprop("/sim/gui/d-button", 1); |
| 442 |
</script> |
| 443 |
</binding> |
| 444 |
<mod-up> |
| 445 |
<binding> |
| 446 |
<command>nasal</command> |
| 447 |
<script> |
| 448 |
setprop("/sim/gui/d-button", 0); |
| 449 |
</script> |
| 450 |
</binding> |
| 451 |
</mod-up> |
| 452 |
</button> |
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
<button n="8"> |
| 457 |
<desc>(T1) : Landing Gear Handle Up</desc> |
| 458 |
<binding> |
| 459 |
<command>nasal</command> |
| 460 |
<script> |
| 461 |
controls.gearDown(-1) |
| 462 |
</script> |
| 463 |
</binding> |
| 464 |
</button> |
| 465 |
<button n="9"> |
| 466 |
<desc>(T2) : Landing Gear Handle Down</desc> |
| 467 |
<binding> |
| 468 |
<command>nasal</command> |
| 469 |
<script> |
| 470 |
controls.gearDown(1) |
| 471 |
</script> |
| 472 |
</binding> |
| 473 |
</button> |
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
<button n="15"> |
| 478 |
<desc>Elevator trim down</desc> |
| 479 |
<repeatable type="bool">true</repeatable> |
| 480 |
<binding> |
| 481 |
<command>nasal</command> |
| 482 |
<script>controls.elevatorTrim(0.6)</script> |
| 483 |
</binding> |
| 484 |
</button> |
| 485 |
<button n="17"> |
| 486 |
<desc>Elevator trim up</desc> |
| 487 |
<repeatable type="bool">true</repeatable> |
| 488 |
<binding> |
| 489 |
<command>nasal</command> |
| 490 |
<script>controls.elevatorTrim(-0.6)</script> |
| 491 |
</binding> |
| 492 |
</button> |
| 493 |
|
| 494 |
|
| 495 |
<button n="16"> |
| 496 |
<desc>(Throttle Rocker) : Rudder trim right</desc> |
| 497 |
<repeatable type="bool">true</repeatable> |
| 498 |
<binding> |
| 499 |
<command>nasal</command> |
| 500 |
<script>controls.rudderTrim(1)</script> |
| 501 |
</binding> |
| 502 |
</button> |
| 503 |
<button n="18"> |
| 504 |
<desc>(Throttle Rocker) : Rudder trim left</desc> |
| 505 |
<repeatable type="bool">true</repeatable> |
| 506 |
<binding> |
| 507 |
<command>nasal</command> |
| 508 |
<script>controls.rudderTrim(-1)</script> |
| 509 |
</binding> |
| 510 |
</button> |
| 511 |
|
| 512 |
|
| 513 |
<button n="10"> |
| 514 |
<desc>(T3) : Decrease flaps (shift: Speed Brakes extend)</desc> |
| 515 |
<binding> |
| 516 |
<command>nasal</command> |
| 517 |
<script> |
| 518 |
if ( getprop("/sim/gui/d-button") ) { |
| 519 |
setprop("/controls/flight/speedbrake", 1); |
| 520 |
} else { |
| 521 |
controls.flapsDown(-1) |
| 522 |
} |
| 523 |
</script> |
| 524 |
</binding> |
| 525 |
<mod-up> |
| 526 |
<binding> |
| 527 |
<command>nasal</command> |
| 528 |
<script> |
| 529 |
if ( getprop("/sim/gui/d-button") ) { |
| 530 |
|
| 531 |
} else { |
| 532 |
controls.flapsDown(0) |
| 533 |
} |
| 534 |
</script> |
| 535 |
</binding> |
| 536 |
</mod-up> |
| 537 |
</button> |
| 538 |
<button n="11"> |
| 539 |
<desc>(T4) : Increase flaps (shift: Speed Brakes retract)</desc> |
| 540 |
<binding> |
| 541 |
<command>nasal</command> |
| 542 |
<script> |
| 543 |
if ( getprop("/sim/gui/d-button") ) { |
| 544 |
setprop("/controls/flight/speedbrake", 0); |
| 545 |
} else { |
| 546 |
controls.flapsDown(1) |
| 547 |
} |
| 548 |
</script> |
| 549 |
</binding> |
| 550 |
<mod-up> |
| 551 |
<binding> |
| 552 |
<command>nasal</command> |
| 553 |
<script> |
| 554 |
if ( getprop("/sim/gui/d-button") ) { |
| 555 |
|
| 556 |
} else { |
| 557 |
controls.flapsDown(0) |
| 558 |
} |
| 559 |
</script> |
| 560 |
</binding> |
| 561 |
</mod-up> |
| 562 |
</button> |
| 563 |
|
| 564 |
|
| 565 |
<button n="12"> |
| 566 |
<desc>(T5) : Carb Heat On (shift: Cowl Flaps Close)</desc> |
| 567 |
<binding> |
| 568 |
<command>nasal</command> |
| 569 |
<script> |
| 570 |
if ( getprop("/sim/gui/d-button") ) { |
| 571 |
props.setAll("/controls/engines/engine", "cowl-flaps-norm", 1); |
| 572 |
} else { |
| 573 |
props.setAll("/controls/engines/engine", "carb-heat", 0); |
| 574 |
} |
| 575 |
</script> |
| 576 |
</binding> |
| 577 |
</button> |
| 578 |
<button n="13"> |
| 579 |
<desc>(T6) : Carb Heat Off (shift: Cowl Flaps Open)</desc> |
| 580 |
<binding> |
| 581 |
<command>nasal</command> |
| 582 |
<script> |
| 583 |
if ( getprop("/sim/gui/d-button") ) { |
| 584 |
props.setAll("/controls/engines/engine", "cowl-flaps-norm", 0); |
| 585 |
} else { |
| 586 |
props.setAll("/controls/engines/engine", "carb-heat", 1); |
| 587 |
} |
| 588 |
</script> |
| 589 |
</binding> |
| 590 |
</button> |
| 591 |
|
| 592 |
|
| 593 |
<button n="20"> |
| 594 |
<desc>Aileron trim right</desc> |
| 595 |
<repeatable type="bool">true</repeatable> |
| 596 |
<binding> |
| 597 |
<command>nasal</command> |
| 598 |
<script>controls.aileronTrim(0.5)</script> |
| 599 |
</binding> |
| 600 |
</button> |
| 601 |
<button n="22"> |
| 602 |
<desc>Aileron trim left</desc> |
| 603 |
<repeatable type="bool">true</repeatable> |
| 604 |
<binding> |
| 605 |
<command>nasal</command> |
| 606 |
<script>controls.aileronTrim(-0.5)</script> |
| 607 |
</binding> |
| 608 |
</button> |
| 609 |
|
| 610 |
|
| 611 |
|
| 612 |
|
| 613 |
|
| 614 |
<button n="23"> |
| 615 |
<desc>Mode 1</desc> |
| 616 |
<binding> |
| 617 |
<command>nasal</command> |
| 618 |
<script> |
| 619 |
setprop("/input/joysticks/js/saitek-x52-mode",1) |
| 620 |
</script> |
| 621 |
</binding> |
| 622 |
</button> |
| 623 |
<button n="24"> |
| 624 |
<desc>Mode 2</desc> |
| 625 |
<binding> |
| 626 |
<command>nasal</command> |
| 627 |
<script> |
| 628 |
setprop("/input/joysticks/js/saitek-x52-mode",2) |
| 629 |
</script> |
| 630 |
</binding> |
| 631 |
</button> |
| 632 |
<button n="25"> |
| 633 |
<desc>Mode 3</desc> |
| 634 |
<binding> |
| 635 |
<command>nasal</command> |
| 636 |
<script> |
| 637 |
setprop("/input/joysticks/js/saitek-x52-mode",3) |
| 638 |
</script> |
| 639 |
</binding> |
| 640 |
</button> |
| 641 |
|
| 642 |
<button n="26"> |
| 643 |
<desc>(MFD Func) : Stopwatch timer becomes clock again</desc> |
| 644 |
<binding> |
| 645 |
<command>nasal</command> |
| 646 |
<script> |
| 647 |
props.globals.getNode("/instrumentation/clock/offset-sec", 1).setValue(0); |
| 648 |
</script> |
| 649 |
</binding> |
| 650 |
</button> |
| 651 |
|
| 652 |
<button n="28"> |
| 653 |
<desc>(MFD Reset) : Stopwatch timer reset</desc> |
| 654 |
<binding> |
| 655 |
<command>nasal</command> |
| 656 |
<script> |
| 657 |
|
| 658 |
|
| 659 |
ttt = props.globals.getNode("/instrumentation/clock/indicated-sec", 1).getValue(); |
| 660 |
node = props.globals.getNode("/instrumentation/clock/offset-sec", 1); |
| 661 |
off = node.getValue(); |
| 662 |
node.setValue(off-ttt); |
| 663 |
</script> |
| 664 |
</binding> |
| 665 |
</button> |
| 666 |
|
| 667 |
|
| 668 |
|
| 669 |
<button n="29"> |
| 670 |
<desc>Mode 1</desc> |
| 671 |
<binding> |
| 672 |
<command>nasal</command> |
| 673 |
<script> |
| 674 |
setprop("/input/joysticks/js/saitek-x52-i",1) |
| 675 |
</script> |
| 676 |
</binding> |
| 677 |
<mod-up><binding> |
| 678 |
<command>nasal</command> |
| 679 |
<script> |
| 680 |
setprop("/input/joysticks/js/saitek-x52-i",0) |
| 681 |
</script> |
| 682 |
</binding></mod-up> |
| 683 |
</button> |
| 684 |
|
| 685 |
|
| 686 |
|
| 687 |
<button n="666"> |
| 688 |
<desc>Toggle parking brake on or off</desc> |
| 689 |
<binding> |
| 690 |
<command>property-toggle</command> |
| 691 |
<property>/controls/gear/brake-parking</property> |
| 692 |
</binding> |
| 693 |
</button> |
| 694 |
|
| 695 |
</PropertyList> |