From 4d402914b163a20e1cb3aafff2e6112073082a45 Mon Sep 17 00:00:00 2001
From: James Turner <zakalawe@mac.com>
Date: Sun, 29 Apr 2018 23:15:58 +0100
Subject: [PATCH] Input config for SimJabs single yoke

---
 Input/Event/LeoBodnar/SimuJabsYoke.xml     | 42 +++++++++++++
 Input/Joysticks/SimuJabs/Single737Yoke.xml | 73 ++++++++++++++++++++++
 2 files changed, 115 insertions(+)
 create mode 100644 Input/Event/LeoBodnar/SimuJabsYoke.xml
 create mode 100644 Input/Joysticks/SimuJabs/Single737Yoke.xml

diff --git a/Input/Event/LeoBodnar/SimuJabsYoke.xml b/Input/Event/LeoBodnar/SimuJabsYoke.xml
new file mode 100644
index 000000000..cde14790e
--- /dev/null
+++ b/Input/Event/LeoBodnar/SimuJabsYoke.xml
@@ -0,0 +1,42 @@
+<PropertyList>
+
+  <name>DISABLED Leo Bodnar BU0836A Interface</name>
+  <debug-events type="bool">false</debug-events>
+
+
+  <event>
+    <desc>Aileron</desc>
+    <name>abs-x-rotate</name>
+    <binding>
+      <command>property-scale</command>
+      <property>/controls/flight/aileron</property>
+      <offset>-1.0</offset>
+      <factor>-1.0</factor>
+    </binding>
+  </event>
+
+  <event>
+    <desc>Elevator</desc>
+    <name>abs-y-rotate</name>
+    <binding>
+      <command>property-scale</command>
+      <property>/controls/flight/elevator</property>
+      <offset>-1.0</offset>
+      <factor>-1.0</factor>
+    </binding>
+  </event>
+<!--
+  <event>
+    <desc>Rudder</desc>
+    <name>abs-z-translate</name>
+    <binding>
+      <command>property-scale</command>
+      <property>/controls/flight/rudder</property>
+      <offset>-0.5</offset>
+      <factor>-2.0</factor>
+      <power type="double">1.0</power>
+    </binding>
+
+  </event>
+-->
+</PropertyList>
diff --git a/Input/Joysticks/SimuJabs/Single737Yoke.xml b/Input/Joysticks/SimuJabs/Single737Yoke.xml
new file mode 100644
index 000000000..60235b4f7
--- /dev/null
+++ b/Input/Joysticks/SimuJabs/Single737Yoke.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" ?>
+
+<PropertyList>
+
+  <name type="string">Leo Bodnar BU0836A Interface</name>
+
+ <!-- Joystick Configuration Template -->
+
+ <axis n="0">
+  <desc>Aileron</desc>
+  <direction>right</direction>
+  <binding>
+   <command>property-scale</command>
+   <property>/controls/flight/aileron</property>
+   <offset type="double">0.0</offset>
+   <factor type="double">2.0</factor>
+   <power type="int">1</power>
+  </binding>
+ </axis>
+
+ <axis n="1">
+  <desc>Elevator</desc>
+  <direction>down/forward</direction>
+  <binding>
+   <command>property-scale</command>
+   <property>/controls/flight/elevator</property>
+   <factor type="double">-1.4</factor>
+   <power type="int">1</power>
+  </binding>
+ </axis>
+
+
+ <button n="0">
+  <desc>Elevator Trim Forward</desc>
+  <repeatable>true</repeatable>
+  <binding>
+   <command>nasal</command>
+   <script>print('yoke side button');</script>
+  </binding>
+ </button>   
+
+ <button n="1">
+  <desc>PTT</desc>
+  <repeatable>false</repeatable>
+  <binding>
+   <command>nasal</command>
+   <script>print('implement PTT');</script>
+  </binding>
+ </button>
+
+ <button n="2">
+  <desc>Elevator Trim Forward</desc>
+  <repeatable>true</repeatable>
+  <binding>
+   <command>nasal</command>
+   <script>controls.elevatorTrim(0.75)</script>
+  </binding>
+ </button>                                   
+
+ <button n="3">
+  <desc>Elevator Trim Backward</desc>
+  <repeatable>true</repeatable>
+  <binding>
+   <command>nasal</command>
+   <script>controls.elevatorTrim(-0.75)</script>
+  </binding>
+ </button>
+
+
+
+</PropertyList>
+
+<!-- end of joystick.xml -->