Difference between revisions of "love.sensor.hasSensor"

(Created page with "{{newin|12.0|120|type=function}} Check if the specified sensor exist in the device. == Function == === Synopsis === <source lang="lua">available = love.sensor.hasSensor( s...")
 
m
 
Line 1: Line 1:
 
{{newin|[[12.0]]|120|type=function}}
 
{{newin|[[12.0]]|120|type=function}}
Check if the specified sensor exist in the device.
+
Check if the specified sensor exists in the device.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

Latest revision as of 16:52, 1 October 2023

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

Check if the specified sensor exists 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