KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Key States

States each key can be in. More...

Macros

#define KEY_STATE_NONE   0
 
#define KEY_STATE_WAS_PRESSED   1
 
#define KEY_STATE_PRESSED   2
 

Detailed Description

States each key can be in.

These are the different 'states' each key can be in. They are stored in kbd_state_t->matrix, and manipulated/checked by kbd_check_poll.

none-> pressed or none was pressed-> pressed or none pressed-> was_pressed

Macro Definition Documentation

◆ KEY_STATE_NONE

#define KEY_STATE_NONE   0

◆ KEY_STATE_PRESSED

#define KEY_STATE_PRESSED   2

◆ KEY_STATE_WAS_PRESSED

#define KEY_STATE_WAS_PRESSED   1