Touch
Interface for handling touch interactions on Android devices.
Methods
Method | Description |
---|---|
init() | Initializes the touch interface |
down() | Performs a touch down action |
move() | Performs a touch move action |
up() | Performs a touch up action |
exit() | Exits and cleans up the touch interface |
dispatch() | Dispatches all pending touch events |
Examples
Touch:init()
-- Perform a simple tap
Touch:down(100, 200)
Touch:up()
-- Perform a swipe
Touch:down(100, 200)
Touch:move(300, 400)
Touch:up()
-- Clean up
Touch:exit()