LumaOS  v0.1.116
An experimental x86-64 OS
Loading...
Searching...
No Matches
key_event Struct Reference

A decoded key event. More...

#include <keyboard.h>

Data Fields

uint8_t scancode
 the code with bit 7 removed
bool extended
 came after an 0xE0 prefix
bool pressed
 true = key down, false = key up
char ascii
 0 if the key has no printable character

Detailed Description

A decoded key event.

Definition at line 24 of file keyboard.h.

Field Documentation

◆ ascii

char key_event::ascii

0 if the key has no printable character

Definition at line 32 of file keyboard.h.

◆ extended

bool key_event::extended

came after an 0xE0 prefix

Definition at line 28 of file keyboard.h.

◆ pressed

bool key_event::pressed

true = key down, false = key up

Definition at line 30 of file keyboard.h.

◆ scancode

uint8_t key_event::scancode

the code with bit 7 removed

Definition at line 26 of file keyboard.h.


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