|
From: David M. <da...@me...> - 2001-06-17 10:22:31
|
Alex Perry writes:
> How do I do this, or something similar:
>
> When button X is depressed,
> joystick channel Y has a linear mapping to P and Q is forced to zero.
> When button X is released,
> joystick channel Y has a linear mapping to Q and P is forced to zero.
>
> For what I have in mind, P and Q are rudder pedals and ailerons respectively.
There is not yet support for using buttons as modifiers. If I have a
chance to add it, it will probably look something like this:
<js n="0">
<axis n="4">
<binding>
<command>property-scale</command>
<property>/controls/aileron</property>
</binding>
<mod-button n="3">
<binding>
<command>property-scale</command>
<property>/controls/rudder</property>
</binding>
</mod-button>
</axis>
<button n="3">
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/aileron</property>
<value>0.0</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/rudder</property>
<value>0.0</value>
</binding>
</mod-up>
</button>
</js>
I don't think this will be too difficult to add -- probably about 10
or 15 extra lines of code. What do you need it for?
All the best,
David
--
David Megginson
da...@me...
|