This commit is contained in:
nub31
2025-09-01 20:49:15 +02:00
parent 7c6ff5d52d
commit 5927756988
6 changed files with 53 additions and 5 deletions

View File

@@ -3,6 +3,7 @@
#include "kernel.h"
#include "vga.h"
#include "util.h"
#include <stddef.h>
#define SCANCODE_LEFT_SHIFT 42
#define SCANCODE_RIGHT_SHIFT 54
@@ -31,7 +32,7 @@ bool caps_lock = false;
// todo(nub): make dynamic when a memory allocator is implemented
static keyboard_handler_t keyboard_handlers[KEYBOARD_HANDLERS_LENGTH];
static int handler_index = 0;
static size_t handler_index = 0;
char scan_code_to_ascii(uint8_t scan_code)
{