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.

Example



See Also

History

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