diff options
| author | Ada Christine <adachristine18@gmail.com> | 2023-02-14 00:02:55 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2023-02-14 00:02:55 +0000 |
| commit | ec04c40823f1a4265be8a6f81cbf5776dc2b2495 (patch) | |
| tree | f4a5f5e2301ec3ac15773fadf658315689a74ceb /kc/core/input.h | |
| parent | 6cdf57afc0a1da4abec33527cc70626d704ba565 (diff) | |
ps2 driver
Diffstat (limited to 'kc/core/input.h')
| -rw-r--r-- | kc/core/input.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kc/core/input.h b/kc/core/input.h new file mode 100644 index 0000000..b796fdf --- /dev/null +++ b/kc/core/input.h @@ -0,0 +1,21 @@ +#pragma once + +typedef int (*input_callback)(void); + +struct input_callback_list +{ + input_callback func; + struct input_callback_list *next; +}; + +struct input_source +{ + const char *name; + void (*init)(void); + void (*enable)(void); + void (*disable)(void); + + int (*append_callback)(input_callback func); + void (*delete_callback)(input_callback func); +}; + |
