Page:
JoeyLib Keyboard Functions
Pages
Build Server Virtual Machine
Installation
Joey Projects Status
JoeyLib API
JoeyLib Concepts
JoeyLib Data Types
JoeyLib Definitions
JoeyLib Display Functions
JoeyLib Drawing Functions
JoeyLib Enumerations
JoeyLib Formats
JoeyLib Gamepad Functions
JoeyLib Keyboard Functions
JoeyLib Memory Functions
JoeyLib Palette Functions
JoeyLib Sound Functions
JoeyLib Static Image Functions
JoeyLib Structures
JoeyLib Utility Functions
JoeyLib Vector Image Functions
Special Thanks
home
No results
1
JoeyLib Keyboard Functions
Scott Duensing edited this page 2018-09-06 01:00:34 +00:00
Table of Contents
Keyboard input is currently very basic. There is no support for multiple simultaneous keys to be pressed at this time.
jlKeyPressed
bool jlKeyPressed(void);
Returns true
if a key is currently being pressed.
char jlKeyRead(void);
Returns the ASCII value of the last key pressed. If the user presses and releases a key, the value will remain available until cleared by jlKeyRead
. Key presses are not buffered. If the user presses and releases more than one key before you read it, you will only get the last one pressed. Only common ASCII values are supported. Special keys are filtered out.
void jlKeyWaitForAny(void);
A convenience function. Just waits for any key to be pressed and released.