touch

touch.touch.tap

Declaration
lua
touch.tap(x, y [, holdMs, waitAfterMs])
Description
Simulate single tap at coordinates.
Parameters
`x` (number) — X coordinate `y` (number) — Y coordinate `holdMs` (number, optional) — hold duration, default 30ms `waitAfterMs` (number, optional) — wait after tap, default 0
Return Values
none
Example
lua
touch.tap(375, 667)
touch.tap(100, 200, 100, 50)