Touch Event Constants
In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
The following touch events are passed in the
eventargument to the widget script
refreshfunction (when in full screen mode), just like the key events. The following touch events are provided:
In addition to the above touch events a
touchStatetable is passed to
refreshwith the following addional data fields:
eventis not a touch event. This can be used to test if we have a touch event or a key event.
- Since Lua evaluates a
falseand everything else to
if touchState thenwe have a touch event.
x, yare present for all touch events.
startX, startY, slideX, slideYare only present with
swipeRightmay be present only with
tapCountis zero for anything but