Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 723 Bytes

File metadata and controls

36 lines (28 loc) · 723 Bytes

GetKeyDown

Description

Procedure GetKeyDown pauses execution of a VectorScript routine until a key is pressed by the user. When the key is pressed, the ASCII code of the key is returned.

PROCEDURE GetKeyDown(VAR asciiCode : LONGINT);
def vs.GetKeyDown():
    return asciiCode

Parameters

Name Type Description
asciiCode LONGINT ASCII code of key pressed.

Examples

GetKeyDown(1);
import vs

# Procedure GetKeyDown pauses execution of a VectorScript routine until a key
# is pressed by the user.
result = vs.GetKeyDown()

Version

Availability: from All Versions

Category