mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
Kernel: Stop using LibKeyboard's CharacterMap in HIDManagement
This was easily done, as the Kernel and Userland don't actually share any of the APIs exposed by it, so instead the Kernel APIs were moved to the Kernel, and the Userland APIs stayed in LibKeyboard. This has multiple advantages: * The non OOM-fallible String is not longer used for storing the character map name in the Kernel * The kernel no longer has to link to the userland LibKeyboard code * A lot of #ifdef KERNEL cruft can be removed from LibKeyboard
This commit is contained in:
parent
cecfd42916
commit
0adee378fd
7 changed files with 58 additions and 89 deletions
|
@ -234,7 +234,7 @@ void KeyboardDevice::key_state_changed(u8 scan_code, bool pressed)
|
|||
event.flags = m_modifiers;
|
||||
event.e0_prefix = m_has_e0_prefix;
|
||||
event.caps_lock_on = m_caps_lock_on;
|
||||
event.code_point = HIDManagement::the().character_map().get_char(event);
|
||||
event.code_point = HIDManagement::the().get_char_from_character_map(event);
|
||||
|
||||
// If using a non-QWERTY layout, event.key needs to be updated to be the same as event.code_point
|
||||
KeyCode mapped_key = code_point_to_key_code(event.code_point);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue