cmdfx 0.2.0
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
CmdFX_KeyEvent Struct Reference

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.
 

Detailed Description

The payload for the CMDFX_EVENT_KEY event.

Member Data Documentation

◆ keyChar

char CmdFX_KeyEvent::keyChar

The character representation of the key.

This value is 0 if the key does not have a character representation.

◆ state

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.


The documentation for this struct was generated from the following file: