Kernel: KeyEvent is now well known keycode

Keycodes are easier to handle as you need only one keyboard layout
for keycodes. Otherwise you would need to implement keyboard layout
for every keyboard driver in every language.
This commit is contained in:
2024-01-10 01:29:37 +02:00
parent e4f48cbc73
commit 961ab9768a
12 changed files with 981 additions and 489 deletions

View File

@@ -8,6 +8,7 @@
#include <kernel/FS/VirtualFileSystem.h>
#include <kernel/GDT.h>
#include <kernel/IDT.h>
#include <kernel/Input/KeyboardLayouts/FI.h>
#include <kernel/Input/PS2/Controller.h>
#include <kernel/InterruptController.h>
#include <kernel/kprint.h>
@@ -182,6 +183,7 @@ static void init2(void*)
VirtualFileSystem::initialize(cmdline.root);
dprintln("VFS initialized");
Input::KeyboardLayout::initialize_fi();
if (auto res = PS2Controller::initialize(); res.is_error())
dprintln("{}", res.error());