Home Contents | # touch.event | Touch | Core4 Lua Event System

## SYNOPSIS

touchhandle.event = function(touchhandle, current_state, last_state)

## DESCRIPTION

This callback provides the most basic information about a touch screen event. It reports everything that happens on the touch screen. This may cause heavy processor load while a finger or pen is pressed onto the screen. Better use touch.click() or touch.input().

The parameters current_state and last_state indicate the state of the current and previous events, respectively. They contain the following fields:

x | Screen X coordinate
y | Screen Y coordinate
pressure | Raw pressure value
buttons | Buttons bitmask. Bit 0 = pen, Bit 1 = Finger

## NOTES

This function is most useful for debugging purposes.

## SEE ALSO

touch:clearCallbacks, touch.click, touch.release, touch.input