love.touch.getTouches

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

Gets a list of all active touch-presses.

Function

Synopsis

touches = love.touch.getTouches( )

Arguments

None.

Returns

table touches
A list of active touch-press id values, which can be used with love.touch.getPosition.

Notes

The id values are the same as those used as arguments to love.touchpressed, love.touchmoved, and love.touchreleased.

The id value of a specific touch-press is only guaranteed to be unique for the duration of that touch-press. As soon as love.touchreleased is called using that id, it may be reused for a new touch-press via love.touchpressed.

See Also

Other Languages