Showing 1 changed files with 19 additions and 23 deletions
+19 -23
.fgfs/Input/Joysticks/Microsoft-SideWinder-Joystick.xml
... ...
@@ -125,25 +125,23 @@ modified by zakharov
125 125
   </axis>
126 126
 
127 127
   <button n="0">
128
-    <desc>Brakes on ground, change view or fire gun if exists on air</desc>
128
+    <desc>Brakes near ground, change view or fire gun if exists on air</desc>
129 129
     <binding>
130 130
       <condition>
131
-        <and>
132
-          <property>/gear/gear[1]/wow</property>
133
-          <property>/gear/gear[2]/wow</property>
134
-        </and>
131
+        <less-than>
132
+          <property>/position/gear-agl-m</property>
133
+          <value>3</value>
134
+        </less-than>
135 135
       </condition>
136 136
       <command>nasal</command>
137 137
       <script>controls.applyBrakes(1)</script>
138 138
     </binding>
139 139
     <binding>
140 140
       <condition>
141
-        <not>
142
-          <and>
143
-            <property>/gear/gear[1]/wow</property>
144
-            <property>/gear/gear[2]/wow</property>
145
-          </and>
146
-        </not>
141
+        <greater-than>
142
+          <property>/position/gear-agl-m</property>
143
+          <value>3</value>
144
+        </greater-than>
147 145
       </condition>
148 146
       <command>nasal</command>
149 147
       <script>button0(1)</script>
... ...
@@ -151,25 +149,23 @@ modified by zakharov
151 149
     <mod-up>
152 150
       <binding>
153 151
         <condition>
154
-          <not>
155
-            <and>
156
-              <property>/gear/gear[1]/wow</property>
157
-              <property>/gear/gear[2]/wow</property>
158
-            </and>
159
-          </not>
152
+          <less-than>
153
+            <property>/position/gear-agl-m</property>
154
+            <value>3</value>
155
+          </less-than>
160 156
         </condition>
161 157
         <command>nasal</command>
162
-        <script>button0(0)</script>
158
+        <script>controls.applyBrakes(0)</script>
163 159
       </binding>
164 160
       <binding>
165 161
         <condition>
166
-          <and>
167
-            <property>/gear/gear[1]/wow</property>
168
-            <property>/gear/gear[2]/wow</property>
169
-          </and>
162
+          <greater-than>
163
+            <property>/position/gear-agl-m</property>
164
+            <value>3</value>
165
+          </greater-than>
170 166
         </condition>
171 167
         <command>nasal</command>
172
-        <script>controls.applyBrakes(0)</script>
168
+        <script>button0(0)</script>
173 169
       </binding>
174 170
     </mod-up>
175 171
   </button>