diff options
author | Hüseyin ASLITÜRK <asliturk@hotmail.com> | 2020-06-10 11:22:31 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-13 12:36:30 +0200 |
commit | b4577ffcf31ef521dcf914d783403f5a57af96b5 (patch) | |
tree | ef4856e11e7577760177f133844194436636ba2a /Kernel/Devices/KeyboardDevice.h | |
parent | f4d14c42d0e394307cc7345482ac8bd7d54514fd (diff) | |
download | serenity-b4577ffcf31ef521dcf914d783403f5a57af96b5.zip |
Kernel: KeyboardDevice, remove char mapping logic
Remove char mapping logic and constant character map.
Diffstat (limited to 'Kernel/Devices/KeyboardDevice.h')
-rw-r--r-- | Kernel/Devices/KeyboardDevice.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Kernel/Devices/KeyboardDevice.h b/Kernel/Devices/KeyboardDevice.h index f1c2a6a598..acc2297eb7 100644 --- a/Kernel/Devices/KeyboardDevice.h +++ b/Kernel/Devices/KeyboardDevice.h @@ -32,6 +32,7 @@ #include <Kernel/Devices/CharacterDevice.h> #include <Kernel/Interrupts/IRQHandler.h> #include <Kernel/KeyCode.h> +#include <LibKeyboard/CharacterMap.h> namespace Kernel { @@ -49,7 +50,7 @@ public: KeyboardDevice(); void set_client(KeyboardClient* client) { m_client = client; } - void set_maps(const char* n_map, const char* n_shift_map, const char* n_alt_map, const char* n_altgr_map); + void set_maps(Keyboard::CharacterMapData character_map); // ^CharacterDevice virtual ssize_t read(FileDescription&, size_t, u8* buffer, ssize_t) override; @@ -81,6 +82,8 @@ private: bool m_caps_lock_on { false }; bool m_num_lock_on { false }; bool m_has_e0_prefix { false }; + + Keyboard::CharacterMap m_character_map = Keyboard::CharacterMap("en"); }; class KeyboardClient { |