1
0
Fork 0
fgdata/Input/Joysticks/ThrustMaster/Warthog/Throttle/seahawk.xml
Melchior FRANZ 7d9ea536f7 warthog: first stab at throttle hardware config (backlight + LEDs)
This works under Linux only, which is certainly suboptimal. But there's no
reason why support for other OSes couldn't be added later, and there's no
reason to not support Linux now, either. The code can set the throttle's
backlight brightness and the five programmable LEDs. As a demonstration,
the latter is currently used for a gear-down warning. Support for setting
the stick's hardware deadzone is planned. (It's on by default.)

The mechanism writes directly to Linux' hidraw devices, which requires
some simple configuration. This is described in the README. It doesn't
depend on any external utility.
2011-10-02 21:56:28 +02:00

14 lines
313 B
XML

<?xml version="1.0"?>
<!-- fix broken seahawk speedbrake -->
<PropertyList>
<nasal>
<script>
jslistener("/controls/flight/speedbrake", func(n) {
print(n.getValue());
setprop("/controls/flight/speedbrake-lever", n.getValue());
seahawk.adjustFlaps();
});
</script>
</nasal>
</PropertyList>