SETJOYSTICKDEADZONE |
Top Previous Next |
Syntax SETJOYSTICKDEADZONE(Axis as INT,pct as FLOAT,OPT device as INT) Description Sets the deadzone of a joystick axis. Parameters Axis - The axis to set. pct - Deadzone percentage. device - Optional device number. Default is 0 or the first joystick attached to the system Return value None Remarks A deadzone is a percentage of the range of movement about the center of the axis where the joystick will report being at the center of its range. The default dead zone is 10% and percentages are entered directly as in 50.5 would be equal to 50.5%. Axis is one of the constants @XAXIS,@YAXIS or @ZAXIS. The deadzone should be set after the range for the axis. A screen must be open or DirectInput manually initialized before using this function. See Also: SETJOYSTICKRANGE Example usage SETJOYSTICKDEADZONE @XAXIS, 15.0 |