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

KeyboardSettings+Kernel: Setting to enable Num Lock on login

This commit is contained in:
ForLoveOfCats 2021-07-03 19:41:28 -04:00 committed by Gunnar Beutner
parent 7fdeb0ec74
commit ce6658acc1
11 changed files with 58 additions and 1 deletions

View file

@ -0,0 +1,18 @@
/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Devices/HID/HIDManagement.h>
#include <Kernel/Process.h>
namespace Kernel {
KResultOr<FlatPtr> Process::sys$set_num_lock(bool on)
{
HIDManagement::the().set_num_lock(on);
return 0;
}
}