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 an interval of 0.05 seconds, which will effect up to 20 repeats per second, then add
the following to the property:
</p>
<PRE>
--prop:/input/joysticks/js/axis[1]/interval-sec=0.05
</PRE>
<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>
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).