SYNOPSIS
DESCRIPTION
Create a new touch screen event handler. The handler is attached to the event processor passed in app.
Touch screen events are detected during the event loop inside event:poll() and reported to the callbacks touch.event(), touch.click() and touch.input().
The optional offset arguments are simply subtracted from the device coordinates before they are processed. Default values are both zero when not given or passed as nil. This can be useful when simulating a smaller display on a larger display.
By default, the handler opens a touch screen device that is auto-detectable by the kernel.
When using a serial attached Elo touchscreen, auto-detection is not possible. Pass the value "ELO" as driver and the name of the serial device as device to manually load the Elo driver.