![]() |
cmdfx 0.3.2
Lightweight game engine for your terminal
|
The payload for the CMDFX_EVENT_KEY event. More...
#include <events.h>
Public Attributes | |
| int | keyCode |
| The key code, or 0 if no key is pressed. | |
| char | keyChar |
| The character representation of the key. | |
| bool | state |
| The state of the key. | |
The payload for the CMDFX_EVENT_KEY event.
| char CmdFX_KeyEvent::keyChar |
The character representation of the key.
This value is 0 if the key does not have a character representation.
| bool CmdFX_KeyEvent::state |
The state of the key.
The state is 1 if the key is pressed, or 0 if the key is released.