This is an old revision of the document!
keypressed ( expr )
return boolean_value or integer_value
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.
1.99.99.26 | New To Version |