Home  Contents

touch.click

Touch Core4 Lua Event System

SYNOPSIS

  1. touchhandle.click = function(touchhandle, x, y)
  2. touchhandle.release = function(touchhandle, x, y)

DESCRIPTION

The click() callback is run whenever a location on the screen is clicked. The passed coordinates x and y are already processed and indicate the pixel coordinate of the event on the screen.

In turn, the release() callback runs when the click is released. The passed coordinates x and y indicate the position where the release has happened.

NOTES

Callbacks are called from within event:poll().

SEE ALSO