|
Post by Far out on Sept 18, 2021 6:50:18 GMT
touchended ā function that handles multi touch ended event
if set, this function is called to handle multi touch ended event draw.touchended( touches ) touches = table of touches, every item touches has : id = touch ID (starts from 1) x = x coordinate of touch y = y coordinate of touch
Iām not sure how to retrieve x and y from touches
|
|
|
Post by Admin on Sept 18, 2021 15:01:40 GMT
touches[1].x touches[1].y
I recommend to see draw examples throughly
|
|
|
Post by formulax on Dec 18, 2022 6:56:16 GMT
When using draw.touchbegan() I run into this problem:
FreakOut!.lua:80: attempt to call field 'touchbegan' (a nil value)
|
|
|
Post by Admin on Dec 18, 2022 9:13:47 GMT
When using draw.touchbegan() I run into this problem: FreakOut!.lua:80: attempt to call field 'touchbegan' (a nil value) Please see Paint.lua example
|
|