1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-14 04:10:59 +00:00
serenity/Kernel/Devices/HID
Spencer Dixon 0f89e47a1a
Kernel: Allow remapping Caps Lock to Control (#6883)
We use a global setting to determine if Caps Lock should be remapped to
Control because we don't care how keyboard events come in, just that they
should be massaged into different scan codes.

The `proc` filesystem is able to manipulate this global variable using
the `sysctl` utility like so:

```
# sysctl caps_lock_to_ctrl=1
```
2021-05-05 23:10:56 +02:00
..
HIDDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HIDManagement.cpp Kernel: Allow remapping Caps Lock to Control (#6883) 2021-05-05 23:10:56 +02:00
HIDManagement.h Kernel: Allow remapping Caps Lock to Control (#6883) 2021-05-05 23:10:56 +02:00
I8042Controller.cpp Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
I8042Controller.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
KeyboardDevice.cpp Kernel: Allow remapping Caps Lock to Control (#6883) 2021-05-05 23:10:56 +02:00
KeyboardDevice.h Kernel: Allow remapping Caps Lock to Control (#6883) 2021-05-05 23:10:56 +02:00
MouseDevice.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
MouseDevice.h Kernel: Expose minor device numbers for keyboard and mouse 2021-05-01 20:07:11 +02:00
PS2KeyboardDevice.cpp Kernel: Handle both shift keys being pressed and then released 2021-05-01 21:08:23 +02:00
PS2KeyboardDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PS2MouseDevice.cpp Everywhere: Turn #if *_DEBUG into dbgln_if/if constexpr 2021-05-01 21:25:06 +02:00
PS2MouseDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
VMWareMouseDevice.cpp AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
VMWareMouseDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00