Joystick:setSensorEnabled

Available since LÖVE 12.0
This method is not supported in earlier versions.

Enables or disables the specified sensor on this Joystick.


The given sensor type must exist on this Joystick, otherwise this function may cause an error.

Function

Synopsis

Joystick:setSensorEnabled( sensorType, enable )

Arguments

SensorType sensorType
Type of sensor to enable or disable.
boolean enable
True to enable the given sensor, false to disable it.

Returns

Nothing.

See Also

Other Languages