Available since LÖVE 0.10.0
This function is not supported in earlier versions.
Callback function triggered when the touch screen is touched.
love.touchpressed( id, x, y, dx, dy, pressure )
light userdata id
number x
number y
number dx
number dy
number pressure
Nothing.
The identifier is only guaranteed to be unique for the specific touch press until love.touchreleased is called with that identifier, at which point it may be reused for new touch presses.
The unofficial Android and iOS ports of LÖVE 0.9.2 reported touch positions as normalized values in the range of [0, 1], whereas this API reports positions in pixels.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.touchpressed