AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkRawKeyboard.Pressed Property

Returns True if the key code given was pressed this frame, then returns False whilst the key is held down.

Syntax
Pascal
class property Pressed [const Key: Byte]: Boolean;
Parameters 
Description 
Key 
the key code to check. 

This only applies to platforms with a full sized keyboard such as PC and Mac, otherwise all keys will return False. You can check if a full sized keyboard exists by checking KeyboardType. Key codes are in the range 0 to 255. You can also use KEY_* constants.

Copyright (c) 2012. All rights reserved.