Difference between revisions of "Joystick:hasSensor"

(Created page)
 
(No difference)

Latest revision as of 16:04, 13 April 2024

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