Hatch Game Engine Documentation v1.4.0
The documentation for the Hatch Game Engine
Loading...
Searching...
No Matches
Touch Class Reference

Touch screen related functions. More...

Public Member Functions

decimal GetX (integer touchIndex)
 Gets the X position of a touch.
decimal GetY (integer touchIndex)
 Gets the Y position of a touch.
boolean IsDown (integer touchIndex)
 Gets whether a touch is currently down on the screen.
boolean IsPressed (integer touchIndex)
 Gets whether a touch just pressed down on the screen.
boolean IsReleased (integer touchIndex)
 Gets whether a touch just released from the screen.

Detailed Description

Touch screen related functions.

Member Function Documentation

◆ GetX()

decimal Touch.GetX ( integer touchIndex)

Gets the X position of a touch.

Parameters
touchIndex
Returns
Returns a decimal value.

◆ GetY()

decimal Touch.GetY ( integer touchIndex)

Gets the Y position of a touch.

Parameters
touchIndex
Returns
Returns a decimal value.

◆ IsDown()

boolean Touch.IsDown ( integer touchIndex)

Gets whether a touch is currently down on the screen.

Parameters
touchIndex
Returns
Returns a boolean value.

◆ IsPressed()

boolean Touch.IsPressed ( integer touchIndex)

Gets whether a touch just pressed down on the screen.

Parameters
touchIndex
Returns
Returns a boolean value.

◆ IsReleased()

boolean Touch.IsReleased ( integer touchIndex)

Gets whether a touch just released from the screen.

Parameters
touchIndex
Returns
Returns a boolean value.