Touch:dispatch()
Sendet alle anstehenden Berührungs-Ereignisse an das System. Diese Methode ist nützlich, wenn Sie sicherstellen möchten, dass alle Berührungs-Ereignisse sofort verarbeitet werden.
Signatur
dispatch(): void
Rückgabe
- Typ:
void
Beispiele
Touch:init()
-- Perform a series of touch actions
Touch:down(100, 200)
Touch:move(300, 400)
Touch:up()
-- Dispatch all pending events
Touch:dispatch()
-- You can also dispatch after each action if needed
Touch:down(500, 600)
Touch:dispatch()
Touch:move(700, 800)
Touch:dispatch()
Touch:up()
Touch:dispatch()