Showing 1 changed files with 25 additions and 1 deletions
+25 -1
.fgfs/Input/Joysticks/T-Flight-Stick-X.xml
... ...
@@ -93,7 +93,17 @@
93 93
           controls.applyBrakes(pressed)
94 94
         },
95 95
 
96
-        4 : func {
96
+        4 : func (pressed) {
97
+          if (pressed) {
98
+            var comm = getprop(pressed_button[0]) + 1;
99
+            controls.ptt(comm);
100
+            gui.popupTip("PTT COMM " ~ comm);
101
+          }
102
+          else {
103
+            controls.ptt(0);
104
+            gui.popupTip("PTT COMM ends", 0.5);
105
+          }
106
+
97 107
         },
98 108
 
99 109
         5 : func {
... ...
@@ -263,6 +273,20 @@
263 273
     </mod-up>
264 274
   </button>
265 275
 
276
+  <button n="3">
277
+    <desc>PTT - Push To Talk (via FGCom)</desc>
278
+    <binding>
279
+      <command>nasal</command>
280
+      <script>joystick_button[4](1)</script>
281
+    </binding>
282
+    <mod-up>
283
+      <binding>
284
+        <command>nasal</command>
285
+        <script>joystick_button[4](0)</script>
286
+      </binding>
287
+    </mod-up>
288
+  </button>
289
+
266 290
   <button n="4">
267 291
     <desc>Extend Flaps Incrementally</desc>
268 292
     <repeatable>false</repeatable>