love.sensor.hasSensor

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

Check if the specified sensor exist in the device.

Function

Synopsis

available = love.sensor.hasSensor( sensorType )

Arguments

SensorType sensorType
Type of sensor to check.

Returns

boolean available
Sensor availability status.

See Also

Other Languages