Joystick:hasSensor

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

Gets whether the specified sensor exists in the Joystick.

Function

Synopsis

available = Joystick:hasSensor( sensorType )

Arguments

SensorType sensorType
Type of sensor to check.

Returns

boolean available
Sensor availability status.

See Also

Other Languages