#include "keyboard.h"#include <stddef.h>#include "console.h"#include "keycode.h"#include "keymap.h"#include "keymap_us.h"Macros | |
| #define | EVENT_QUEUE_LEN 64 |
Functions | |
| int | keyboard_init (hal_poll_func_t hal_poll_func) |
| function to initialize the kernel keyboard system | |
| bool | keyboard_poll (void) |
| function to poll the keyboard for available events | |
| bool | keyboard_pop_event (struct keyboard_event *event) |
| pop an event from the keyboard event queue. | |
| void | keyboard_push_event (struct keyboard_event event) |
| push event to the keyboard event queue | |
| struct keyboard_state * | keyboard_get_state () |
| get the current modifier state of the keyboard | |
Variables | |
| static struct keyboard_state | state |
| static hal_poll_func_t | hal_poll |
| static struct keyboard_event | event_queue [EVENT_QUEUE_LEN] = {0} |
| int | event_queue_idx = 0 |
| int | event_count = 0 |
| #define EVENT_QUEUE_LEN 64 |
| struct keyboard_state * keyboard_get_state | ( | ) |
get the current modifier state of the keyboard
| int keyboard_init | ( | hal_poll_func_t | poll | ) |
function to initialize the kernel keyboard system
| poll | generic HAL keyboard polling function |
| bool keyboard_poll | ( | ) |
function to poll the keyboard for available events
| bool keyboard_pop_event | ( | struct keyboard_event * | event | ) |
pop an event from the keyboard event queue.
| event | buffer to store new event data in |
| void keyboard_push_event | ( | struct keyboard_event | event | ) |
push event to the keyboard event queue
| event | event to push to the queue |
| int event_count = 0 |
|
static |
| int event_queue_idx = 0 |
|
static |
|
static |