AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkRawJoystick.ButtonPressed Property

Returns True if the given button was pressed this frame, otherwise returns False.

Syntax
Pascal
class property ButtonPressed [const Index, Button: Integer]: Boolean;
Parameters 
Description 
Index 
The ID of the joystick to check (1-4). 
Button 
The ID of the button to check (1-32). 

Once the button has been pressed this function returns to False. To check the state of the button use ButtonDown. AGK supports up to 32 joystick buttons in the range 1-32.

Copyright (c) 2012. All rights reserved.