From 8844cb13ec574cd59376b11b68e39432cf642640 Mon Sep 17 00:00:00 2001 From: ehofman <ehofman> Date: Sun, 15 Aug 2004 09:19:36 +0000 Subject: [PATCH] Use a Nasal script instead of a fixed number of flap settings. --- Input/Joysticks/CH/pro-yoke-usb.xml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Input/Joysticks/CH/pro-yoke-usb.xml b/Input/Joysticks/CH/pro-yoke-usb.xml index 32ed40195..7375a7f4f 100644 --- a/Input/Joysticks/CH/pro-yoke-usb.xml +++ b/Input/Joysticks/CH/pro-yoke-usb.xml @@ -216,15 +216,33 @@ $Id$ </binding> </button> +<!-- <button n="6"> <repeatable>false</repeatable> <binding> - <command>property-assign</command> + <command>property-adjust</command> <property>/controls/flight/flaps</property> - <value type="double">0.0</value> + <step type="double">-0.34</step> </binding> </button> +--> +<button n="6"> + <repeatable>false</repeatable> + <binding> + <command>nasal</command> + <script>controls.stepFlaps(-1)</script> + </binding> +</button> +<button n="7"> + <repeatable>false</repeatable> + <binding> + <command>nasal</command> + <script>controls.stepFlaps(1)</script> + </binding> +</button> + +<!-- <button n="7"> <repeatable>false</repeatable> <binding> @@ -233,6 +251,8 @@ $Id$ <step type="double">0.34</step> </binding> </button> +--> + <button n="8"> <repeatable>true</repeatable>