gesture
This module helps detect what the player is doing with the mouse or touch screen.
api
• gesture.getPosition•••Returns the current pointer position (mouse or finger) on the screen.
• gesture.getClick••••••Returns the most recent click/tap position.
• gesture.getState••••••Returns the current gesture state.
• gesture.hover•••••••••Returns true
if the pointer is over an area.
• gesture.active••••••••Returns true
if the area is being pressed (click or hold).
• gesture.click•••••••••Returns true
if the area was clicked (only during the click frame).
• gesture.released••••••Returns true
if the click or finger was released after pressing the area.