KeyIsDown

Description:

baKeyIsDown checks whether a key is currently down.

Platforms:

Windows and Macintosh

Usage:

Result = baKeyIsDown( Key )

Arguments:

Integer.
Key is the virtual key code of the key to test.

Returns:

Integer.
Returns 1 if Key is being held down, else 0.

Examples:

Director:
KeyDown = baKeyIsDown( 65 ) -- check if the "a" key is down

Authorware:
KeyDown := baKeyIsDown( 65 ) -- check if the "a" key is down
 

Notes:

A list of Virtual Key Codes is supplied. Some of these keys are not available in different versions of Windows.
 

See also:

baKeyBeenPressed