# GetRawTouchType

## Description

Returns the type of the given touch event. All you can be sure about with unknown events is that the finger is currently on screen and has been there less than 1 second. After 1 second it automatically becomes a hold event. If the user lifts their finger off the screen before this then it becomes a short event, and if they move their finger further than the distance specified by SetRawTouchMoveSensitivity then it becomes a drag event. If the current event is not known then it returns 0. Events may change from being hold events to being drag events, but short and drag events do not change type. Unknown events are guaranteed to change type once more information is available. Possible return values are 0 to indicate unknown, 1 for a short touch, 2 for a hold and 3 for dragging.

## Definition

integer GetRawTouchType( iIndex )

int agk::GetRawTouchType( UINT iIndex )

## Parameters

- iIndex - The index of the event to check, received from GetRawNextTouchEvent or GetRawFirstTouchEvent.