diff options
author | Edwin Hoksberg <mail@edwinhoksberg.nl> | 2021-07-05 21:51:54 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-07 10:44:20 +0200 |
commit | 99328e1038f4f87e9ea523dc12264a946769b058 (patch) | |
tree | 7ab1dd45d9486d131e5bb30a02c065d285df84b3 /Kernel/Devices | |
parent | 385e2ccb66b13990587a88cd15e7663117d414c5 (diff) | |
download | serenity-99328e1038f4f87e9ea523dc12264a946769b058.zip |
Kernel+KeyboardSettings: Remove numlock syscall and implement ioctl
Diffstat (limited to 'Kernel/Devices')
-rw-r--r-- | Kernel/Devices/HID/HIDManagement.cpp | 5 | ||||
-rw-r--r-- | Kernel/Devices/HID/HIDManagement.h | 1 | ||||
-rw-r--r-- | Kernel/Devices/HID/KeyboardDevice.h | 2 |
3 files changed, 0 insertions, 8 deletions
diff --git a/Kernel/Devices/HID/HIDManagement.cpp b/Kernel/Devices/HID/HIDManagement.cpp index 2eaa7e2f01..67c2073007 100644 --- a/Kernel/Devices/HID/HIDManagement.cpp +++ b/Kernel/Devices/HID/HIDManagement.cpp @@ -98,11 +98,6 @@ void HIDManagement::set_maps(const Keyboard::CharacterMapData& character_map_dat dbgln("New Character map '{}' passed in by client.", character_map_name); } -void HIDManagement::set_num_lock(bool on) -{ - m_i8042_controller->keyboard()->set_num_lock(on); -} - UNMAP_AFTER_INIT void HIDManagement::enumerate() { // FIXME: When we have USB HID support, we should ensure that we disable diff --git a/Kernel/Devices/HID/HIDManagement.h b/Kernel/Devices/HID/HIDManagement.h index 0249ab94e7..954e0d1af6 100644 --- a/Kernel/Devices/HID/HIDManagement.h +++ b/Kernel/Devices/HID/HIDManagement.h @@ -45,7 +45,6 @@ public: const Keyboard::CharacterMap& character_map() const { return m_character_map; } void set_client(KeyboardClient* client) { m_client = client; } void set_maps(const Keyboard::CharacterMapData& character_map, const String& character_map_name); - void set_num_lock(bool on); private: size_t generate_minor_device_number_for_mouse(); diff --git a/Kernel/Devices/HID/KeyboardDevice.h b/Kernel/Devices/HID/KeyboardDevice.h index ea6057978c..23964f6908 100644 --- a/Kernel/Devices/HID/KeyboardDevice.h +++ b/Kernel/Devices/HID/KeyboardDevice.h @@ -49,8 +49,6 @@ public: m_modifiers &= ~modifier; } - void set_num_lock(bool on) { m_num_lock_on = on; } - protected: KeyboardDevice(); mutable SpinLock<u8> m_queue_lock; |