(475a4fe LLVM update: finally on 18.x!)
#include <stdint.h>
#include <string.h>
#include <sys/syscalls.h>
#include <sys/io.h>
#include <errno.h>
#include "main.h"
#include <vterm.h>
#include <vterm_keycodes.h>
Go to the source code of this file.
◆ unmapped
#define unmapped unused(not_mapped) |
◆ unmapped_single
◆ unused
◆ unused_single
#define unused_single |
( |
|
x | ) |
0xFFFF |
◆ vterm_keycode
#define vterm_keycode |
( |
|
x | ) |
((uint16_t)(x) | 0x8000) |
◆ kbd_handle_input()
◆ kbd_init()
◆ kbd_read()
◆ kbd_send_cmd()
static void kbd_send_cmd |
( |
uint8_t |
cmd | ) |
|
|
static |
◆ kbd_wait_interrupt()
static bool kbd_wait_interrupt |
( |
| ) |
|
|
static |
◆ translate_and_feed_scancode()
Definition at line 12 of file keyboard.c.
References unmapped, unmapped_single, unused, unused_single, lfos_term_state::vterm, VTERM_KEY_BACKSPACE, VTERM_KEY_DEL, VTERM_KEY_DOWN, VTERM_KEY_END, VTERM_KEY_ENTER, VTERM_KEY_ESCAPE, VTERM_KEY_FUNCTION, VTERM_KEY_HOME, VTERM_KEY_INS, VTERM_KEY_KP_0, VTERM_KEY_KP_1, VTERM_KEY_KP_2, VTERM_KEY_KP_3, VTERM_KEY_KP_4, VTERM_KEY_KP_5, VTERM_KEY_KP_6, VTERM_KEY_KP_7, VTERM_KEY_KP_8, VTERM_KEY_KP_9, VTERM_KEY_KP_DIVIDE, VTERM_KEY_KP_ENTER, VTERM_KEY_KP_MINUS, VTERM_KEY_KP_MULT, VTERM_KEY_KP_PERIOD, VTERM_KEY_KP_PLUS, VTERM_KEY_LEFT, VTERM_KEY_PAGEDOWN, VTERM_KEY_PAGEUP, VTERM_KEY_RIGHT, VTERM_KEY_TAB, VTERM_KEY_UP, vterm_keyboard_key(), vterm_keyboard_unichar(), vterm_keycode, VTERM_MOD_ALT, VTERM_MOD_CTRL, VTERM_MOD_NONE, and VTERM_MOD_SHIFT.