23 #define META_SHIFT (1 << 0) 24 #define META_CTRL (1 << 1)
25 #define META_ALT (1 << 2)
26 #define META_ESCAPED (1 << 3)
27 #define META_CAPSLOCK (1 << 4)
28 #define META_NUMLOCK (1 << 5)
29 #define META_SCRLOCK (1 << 6)
95 typedef struct key key_t;
103 uint8_t shifted[128];
104 uint8_t unshifted[128];
void kb_init()
Initialize the keyboard so that it can provide input to the kernel.
bool kb_getkey(key_t *key)
Return the available next key from the keyboard's input buffer.
uint8_t ch
Character value, if valid.
A map of keyboard scan codes to key codes.
void kb_setlayout(keylayout_t *layout)
Install a new keyboard layout.
uint8_t code
Keycode value (type = keycode_t).
uint8_t brk
KEYBRK_UP or KEYBRK_DOWN.
char kb_getchar()
Return the next available character from the keyboard's input buffer.
uint8_t meta
Metakey mask when key was generated.
keycode
Key code values representing individual keys on the keyboard.
A record representing the state of the keyboard at the time a key was presssed or unpressed...
uint8_t kb_meta()
Return the current meta-key bit mask.