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 matrix [MAX_KBD_KEYS]
 Key array.
 
int shift_keys
 Modifier key status.
 
int region
 Keyboard type/region.
 
uint32 key_queue [KBD_QUEUE_SIZE]
 Individual keyboard queue.
 
int queue_tail
 Key queue tail.
 
int queue_head
 Key queue head.
 
volatile int queue_len
 Current length of queue.
 
uint8 kbd_repeat_key
 Key that is repeating.
 
uint64 kbd_repeat_timer
 Time that the next repeat will trigger.
 

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

◆ cond

kbd_cond_t kbd_state_t::cond

The latest raw condition of the keyboard.

◆ kbd_repeat_key

uint8 kbd_state_t::kbd_repeat_key

Key that is repeating.

◆ kbd_repeat_timer

uint64 kbd_state_t::kbd_repeat_timer

Time that the next repeat will trigger.

◆ key_queue

uint32 kbd_state_t::key_queue[KBD_QUEUE_SIZE]

Individual keyboard queue.

You should not access this variable directly. Please use the appropriate function to access it.

◆ matrix

uint8 kbd_state_t::matrix[MAX_KBD_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
Keys

◆ queue_head

int kbd_state_t::queue_head

Key queue head.

◆ queue_len

volatile int kbd_state_t::queue_len

Current length of queue.

◆ queue_tail

int kbd_state_t::queue_tail

Key queue tail.

◆ region

int kbd_state_t::region

Keyboard type/region.

◆ shift_keys

int kbd_state_t::shift_keys

Modifier key status.


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