Difference between revisions of "love.sensor"

(Created page with "{{newin|12.0|120|type=module}} Provides functionality to access device sensor. == Functions == {{#ask: Category:Functions parent::love.sensor | headers=hide | for...")
 
m
 
Line 1: Line 1:
 
{{newin|[[12.0]]|120|type=module}}
 
{{newin|[[12.0]]|120|type=module}}
Provides functionality to access device sensor.
+
Provides functionality to access device sensors such as an accelerometer or gyroscope.
  
 
== Functions ==
 
== Functions ==
Line 26: Line 26:
 
== See Also ==
 
== See Also ==
 
* [[parent::love]]
 
* [[parent::love]]
 +
* [[love.sensorupdated]]
 +
* [[Joystick:hasSensor]]
 
[[Category:Modules]]
 
[[Category:Modules]]
{{#set:Description=Provides functionality to access device sensor.}}
+
{{#set:Description=Provides functionality to access device sensors.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.sensor}}
 
{{i18n|love.sensor}}

Latest revision as of 16:44, 26 March 2023

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

Provides functionality to access device sensors such as an accelerometer or gyroscope.

Functions

love.sensor.hasSensor Check in-device sensor availability. Added since 12.0

Enums

SensorType Kinds of sensors. Added since 12.0

See Also

Other Languages