KallistiOS git master
Independent SDK for the Sega Dreamcast
|
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. | |
Keyboard status structure.
This structure holds information about the current status of the keyboard device. This is what maple_dev_status() will return.
kbd_cond_t kbd_state_t::cond |
The latest raw condition of the keyboard.
uint8 kbd_state_t::kbd_repeat_key |
Key that is repeating.
uint64 kbd_state_t::kbd_repeat_timer |
Time that the next repeat will trigger.
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.
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.
int kbd_state_t::queue_head |
Key queue head.
volatile int kbd_state_t::queue_len |
Current length of queue.
int kbd_state_t::queue_tail |
Key queue tail.
int kbd_state_t::region |
Keyboard type/region.
int kbd_state_t::shift_keys |
Modifier key status.