KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
kbd_state_t Struct Reference

Keyboard status structure. More...

#include <dc/maple/keyboard.h>

Data Fields

kbd_cond_t cond
 The latest raw condition of the keyboard.
 
uint8_t matrix [KBD_MAX_KEYS]
 Key array.
 
union { 
 
   kbd_mods_t   last_modifiers 
 
};  
 Modifier key status.
 
kbd_region_t region
 Keyboard type/region.
 

Detailed Description

Keyboard status structure.

This structure holds information about the current status of the keyboard device. This is what maple_dev_status() will return.

Field Documentation

◆ [union]

union { ... } kbd_state_t

Modifier key status.

Stored to track changes.

◆ cond

kbd_cond_t kbd_state_t::cond

The latest raw condition of the keyboard.

◆ last_modifiers

kbd_mods_t kbd_state_t::last_modifiers

◆ matrix

uint8_t kbd_state_t::matrix[KBD_MAX_KEYS]

Key array.

This array lists the state of all possible keys on the keyboard. It can be used for key repeat and debouncing. This will be non-zero if the key is currently being pressed.

See also
kbd_keys

◆ region

kbd_region_t kbd_state_t::region

Keyboard type/region.


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