love.joysticksensorupdated

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

Called when a Joystick's sensor is updated with new values.

Only Joystick sensors enabled with Joystick:setSensorEnabled will trigger this event.

Function

Synopsis

love.joysticksensorupdated( joystick, sensorType, x, y, z )

Arguments

Joystick joystick
The Joystick object.
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