1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:57:35 +00:00

Kernel+KeyboardSettings: Remove numlock syscall and implement ioctl

This commit is contained in:
Edwin Hoksberg 2021-07-05 21:51:54 +02:00 committed by Gunnar Beutner
parent 385e2ccb66
commit 99328e1038
10 changed files with 21 additions and 38 deletions

View file

@ -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

View file

@ -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();

View file

@ -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;