love.touch_getPosition - oblerion/love2d.js GitHub Wiki

not working on all touch screen, use mouse input

CALL

let t = love.touch_getPosition(id);

PARAMETER

id : number >= 0 , id of touche

RETURN

t : {x,y} -> pos of touch