PatchworkOS
Loading...
Searching...
No Matches
kbd_event_t Struct Reference

Keyboard event structure. More...

#include <kbd.h>

Data Fields

clock_t time
 Timestamp of the event.
 
kbd_event_type_t type
 Type of keyboard event (press or release)
 
kbd_mods_t mods
 Active keyboard modifiers.
 
keycode_t code
 Keycode of the key involved in the event.
 

Detailed Description

Keyboard event structure.

The kbd_event_t structure read from a keyboards stream file, for example /dev/kbd/0/events.

Definition at line 312 of file kbd.h.

Field Documentation

◆ code

keycode_t kbd_event_t::code

Keycode of the key involved in the event.

Definition at line 317 of file kbd.h.

Referenced by dwm_kbd_read().

◆ mods

kbd_mods_t kbd_event_t::mods

Active keyboard modifiers.

Definition at line 316 of file kbd.h.

Referenced by dwm_kbd_read().

◆ time

clock_t kbd_event_t::time

Timestamp of the event.

Definition at line 314 of file kbd.h.

Referenced by kbd_push().

◆ type

kbd_event_type_t kbd_event_t::type

Type of keyboard event (press or release)

Definition at line 315 of file kbd.h.

Referenced by dwm_kbd_read().


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