cock.setJoystickDeadzone

Sets joystick deadzones per axis.

Synopsis

Function

cock.setJoystickDeadzone ( self, joystick, axis, threshold )

Arguments

table self
An object to use.
number joystick
Internal joystick number.
string joystick
Internal joystick name.
number axis
LÖVE joystick axis.
string axis
Axis name.
boolean axis
Value "true" will affect all axis.
number threshold
Deadzone threshold.

Remarks

Axis value "true" will set given threshold to all axis. Threshold value must be less than 1.

See also