diff --git a/Input/Joysticks/ThrustMaster/Warthog/Warthog-Stick.xml b/Input/Joysticks/ThrustMaster/Warthog/Warthog-Stick.xml
index c589a5a29..0ab91c505 100644
--- a/Input/Joysticks/ThrustMaster/Warthog/Warthog-Stick.xml
+++ b/Input/Joysticks/ThrustMaster/Warthog/Warthog-Stick.xml
@@ -18,7 +18,7 @@
var this = cmdarg().getParent();
var init = !contains(caller(0)[0], "init");
var popup = func gui.popupTip(call(sprintf, arg));
- var is_helicopter = (var _ = props.globals.getNode("rotors", 0)) != nil and _.getAttribute("children");
+ var is_helicopter = (func {(var n = props.globals.getNode("rotors", 0)) != nil and n.getAttribute("children")})();
var aircraft_type = getprop("/sim/type");
var overlay = getprop("/input/joysticks/overlay");
@@ -44,12 +44,13 @@
var mod = 0;
if (init) {
- var _ = props.globals.initNode("/devices/status/joysticks/warthog/modifier", mod, "INT");
- setlistener(_, func(n) mod = n.getValue());
+ var n = props.globals.initNode("/devices/status/joysticks/warthog/modifier", mod, "INT");
+ setlistener(n, func(n) mod = n.getValue());
}
var trimstep = 0.75;
var viewstep = 0.5;
+ var button = { 18: { id: 0 }};
var reset_zoom = func setprop("/sim/current-view/field-of-view", 55);
var viewdir = props.globals.getNode("/sim").getChildren("view");
@@ -199,55 +200,7 @@
-
-
-
-
-
-
-
-
-