KEY_STATE GetTouchState(uint touchIndex)/ETHInput

Retrieves the touch state of the given touchIndex.

ETHInput@ input = GetInputHandle();

for (uint t = 0; t < input.GetMaxTouchCount(); t++)
{
    if (input.GetTouchState(t) == KS_DOWN)
    {
        vector2 touchPos = input.GetTouchPos(t);
        print("User is touching screen at " + touchPos.x + ","+ touchPos.y);
    }
}