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:
parent
7fdeb0ec74
commit
ce6658acc1
11 changed files with 58 additions and 1 deletions
18
Kernel/Syscalls/num_lock.cpp
Normal file
18
Kernel/Syscalls/num_lock.cpp
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue