|
|
*Keyboard input is currently very basic. There is no support for multiple simultaneous keys to be pressed at this time.*
|
|
|
|
|
|
#### jlKeyPressed
|
|
|
```c
|
|
|
bool jlKeyPressed(void);
|
|
|
```
|
|
|
Returns `true` if a key is currently being pressed.
|
|
|
|
|
|
####
|
|
|
```c
|
|
|
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.
|
|
|
|
|
|
####
|
|
|
```c
|
|
|
void jlKeyWaitForAny(void);
|
|
|
```
|
|
|
A convenience function. Just waits for any key to be pressed and released. |
|
|
\ No newline at end of file |