vector2 GetTouchPos(uint touchIndex)/ETHInput

Returns the screen position (in pixels) of a 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);
    }
}

The return value of this method is undefined if the method ETHInput::GetTouchState return value is different than KS_HIT or KS_DOWN. More about key state constants.