Set the threshold value that determines if the stick has moved.
First available in version 3.0 build 2039.
threshold - [Optional] - The threshold value for which a change on an axis is deemed to be a movement. Default value is 500.
No output parameters.
When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.
Many joysticks have a natural tendency to generate noise, resulting in a constant fluctuation in the apparent joystick position, even though it is not being moved. To compensate for this, the threshold value is used to reject miniscule changes in the position readings, effectively dampening noise.