AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkPointer.Pressed Method

Checks if the pointer has been pressed.

Syntax
Pascal
class function Pressed: Boolean; static;

True if the pointer has been pressed, False if not.

If the device has a mouse then this will return True if the left mouse button is pressed, False if not. Otherwise the AGK will check for a touch screen and, if found, return True if one or more touch events exist. On devices that have neither mice nor touch screens the AGK will attempt to create some form of screen pointer controlled by analog sticks or similar. 

There are three methods for getting the state of the pointer press: Pressed returns True the instant the pointer is pressed and then returns False. Released returns True the instant the pointer is released and then returns False. Down returns True the entire time the pointer is in the pressed state.

Copyright (c) 2012. All rights reserved.