love.sensorupdated

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

Called when the in-device sensor is updated with new values.

Only sensors enabled with love.sensor.setEnabled will trigger this event.

Function

Synopsis

love.sensorupdated( sensorType, x, y, z )

Arguments

SensorType sensorType
The type of sensor.
number x
The new sensor 1st value.
number y
The new sensor 2nd value.
number z
The new sensor 3rd value.

Returns

Nothing

See Also


Other Languages