User Tools

Site Tools


en:keypressed

This is an old revision of the document!


KeyPressed (Function)

Format

keypressed ( expr )

return boolean_value or integer_value

Description

The KeyPressed function returns a true or false value if a key is currently pressed, or returns the number of keys that are currently being pressed. Unlike the key function that clears the keyboard buffer, the KeyPressed function does not. This allows for the creation of much more responsive games and other uses of the keyboard.

See Also

Statements and Functions - Alphabetic

Statements and Functions - Grouped

Arrays and Variables

Base Conversion

Clipboard

Database (SQLite)

Error Handling

File and Serial Port Input/Output

Graphics

Graphics - Colors
Graphics - Drawing
Graphics - Text
Graphics - Window Control
Graphics - Image Files
Graphics - Images in Memory
Graphics - Slices
Graphics - Sprites
Graphics - Other

Keyboard and User Input

Mathematics

Mouse

Network Communications

Port Input/Output

Printing

Program Control

String Handling

Settings (Persistent)

Sound

Sound - In Memory

Text Output

?, Cls, Print

Time and Date

Other Statements and Functions

Other Documentation

2016/01/01 22:42

History

1.99.99.26New To Version
en/keypressed.1463105515.txt.gz · Last modified: 2020/02/28 10:46 (external edit)