SYNOPSIS
touchhandle = touch.new(app)
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().
RETURN VALUE
On success, a touch event handler instance. If opening the input device fails, three values are returned:
nil, a string describing the error (The result of the C library call strerror() on the
errno code) and the errno number from the standard C library.
EXAMPLE
>
>
app = event.new()
tch = touch.new(app)