![]() |
cmdfx 0.2.0
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. | |
int | 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.
int CmdFX_KeyEvent::state |
The state of the key.
The state is 1 if the key is pressed, or 0 if the key is released.