PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
kbd.h File Reference
#include <kernel/fs/sysfs.h>
#include <kernel/sched/wait.h>
#include <stdint.h>
#include <sys/kbd.h>
Include dependency graph for kbd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  kbd_t
 Keyboard structure. More...
 

Macros

#define KBD_MAX_EVENT   32
 Maximum number of queued keyboard events.
 

Functions

kbd_tkbd_new (const char *name)
 Allocate and initialize a keyboard structure.
 
void kbd_free (kbd_t *kbd)
 Free and deinitialize a keyboard structure.
 
void kbd_push (kbd_t *kbd, kbd_event_type_t type, keycode_t code)
 Push a keyboard event to the keyboard event queue.