1
0
Fork 0

update Joystick documentation for new delay-sec and release-delay-sec properties

This commit is contained in:
Clément de l'Hamaide 2014-03-05 00:46:48 +01:00
parent 9578a22313
commit 167e947c4c

View file

@ -608,10 +608,24 @@ Here's an example of how to use an axis to adjust the elevator trim:
If you want you can specify a time interval for processing digital hat repeats. For example If you want you can specify a time interval for processing digital hat repeats. For example
if you want an interval of 0.05 seconds, which will effect up to 20 repeats per second, then add if you want an interval of 0.05 seconds, which will effect up to 20 repeats per second, then add
the following to the property: the following to the property:
</p>
<PRE> <PRE>
--prop:/input/joysticks/js/axis[1]/interval-sec=0.05 --prop:/input/joysticks/js/axis[1]/interval-sec=0.05
</PRE> </PRE>
<br> <br>
<p>
If you want specify a delay time before interval repeats action. For example
if you want an interval of 0.05 seconds after 1 second the axis has been pressed, then add
the following to the property:
</p>
<PRE>
--prop:/input/joysticks/js/axis[1]/delay-sec=1
--prop:/input/joysticks/js/axis[1]/interval-sec=0.05
</PRE>
<p>
Similarly, release-delay-sec is how long to wait after releasing the button.
</p>
<br>
<P> <P>
You could also bind some axes to brakes, so that you can use positions You could also bind some axes to brakes, so that you can use positions
between between 0.0 (no brakes) and 1.0 (full brakes). between between 0.0 (no brakes) and 1.0 (full brakes).