AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkRawTouch.TouchType Property

Returns the type of the given touch event.

Syntax
Pascal
class property TouchType [const Index: Cardinal]: TAgkTouchType;
Parameters 
Description 
Index 
The index of the event to check, received from FirstEvent or NextEvent

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 it becomes a short event, and if they move their finger it becomes a drag event. 

If no events are available it returns ttUnknown. 

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.

Copyright (c) 2012. All rights reserved.