AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkRawKeyboard.Down Property

Returns True if the key code given is currently down. False if it is up.

Syntax
Pascal
class property Down [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.