KallistiOS  ##version##
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Fields
kbd_state Struct Reference

Keyboard status structure. More...

#include <dc/maple/keyboard.h>

Data Fields

kbd_cond_t cond
 The lastest raw condition of the keyboard. More...
 
uint8 matrix [256]
 Key array. More...
 
int shift_keys
 Modifier key status. More...
 
int region
 Keyboard type/region. More...
 
uint32 key_queue [KBD_QUEUE_SIZE]
 Individual keyboard queue. You should not access this variable directly. Please use the appropriate function to access it. More...
 
int queue_tail
 Key queue tail. More...
 
int queue_head
 Key queue head. More...
 
int queue_len
 Current length of queue. More...
 

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

kbd_cond_t kbd_state::cond

The lastest raw condition of the keyboard.

uint32 kbd_state::key_queue[KBD_QUEUE_SIZE]

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

uint8 kbd_state::matrix[256]

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
Keyboard keys
int kbd_state::queue_head

Key queue head.

int kbd_state::queue_len

Current length of queue.

int kbd_state::queue_tail

Key queue tail.

int kbd_state::region

Keyboard type/region.

int kbd_state::shift_keys

Modifier key status.


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