r44-keyboard.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <PropertyList>
  3. <key n="100">
  4. <name>d</name>
  5. <desc>Close pilot door</desc>
  6. <binding>
  7. <command>nasal</command>
  8. <script>
  9. setprop("/instrumentation/doors/Rcrew/position-norm",0);
  10. </script>
  11. </binding>
  12. </key>
  13. <key n="82">
  14. <name>R</name>
  15. <desc>Toggle rotor brake</desc>
  16. <binding>
  17. <command>nasal</command>
  18. <script>
  19. var p = "/controls/rotor/brake";
  20. setprop(p, !getprop(p));
  21. </script>
  22. </binding>
  23. </key>
  24. <key n="114">
  25. <name>r</name>
  26. <desc>Apply rotor brake</desc>
  27. <binding>
  28. <command>nasal</command>
  29. <script>interpolate("/controls/rotor/brake", 1.0, 2)</script>
  30. </binding>
  31. <mod-up>
  32. <binding>
  33. <command>nasal</command>
  34. <script>interpolate("/controls/rotor/brake", 0.0, 2)</script>
  35. </binding>
  36. </mod-up>
  37. </key>
  38. <key n="105">
  39. <name>i</name>
  40. <desc>Toggle ignition switch</desc>
  41. <binding>
  42. <command>nasal</command>
  43. <script>
  44. foreach (var e; controls.engines) {
  45. if (e.selected.getValue()) {
  46. var i = e.controls.getNode("ignition", 1);
  47. i.setValue(!i.getValue());
  48. }
  49. }
  50. </script>
  51. </binding>
  52. </key>
  53. <key n="123">
  54. <name>{</name>
  55. <desc>Shutdown Engines</desc>
  56. <binding>
  57. <command>nasal</command>
  58. <script>bo105.shutdown()</script>
  59. <condition>
  60. <property>/sim/signals/fdm-initialized</property>
  61. </condition>
  62. </binding>
  63. </key>
  64. <key n="125">
  65. <name>}</name>
  66. <desc>Start Engines</desc>
  67. <binding>
  68. <command>nasal</command>
  69. <script>bo105.startup()</script>
  70. <condition>
  71. <property>/sim/signals/fdm-initialized</property>
  72. </condition>
  73. </binding>
  74. </key>
  75. </PropertyList>