AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkRawTouch.LastX Property

Returns the X position in screen coordinates where the touch event was last recorded before its current location.

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

This coordinate will be in view coordinates. If you are offsetting the view port you may want to convert it to world coordinates using TAgkScene.ScreenToWorld.

Copyright (c) 2012. All rights reserved.