mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:37:34 +00:00
Kernel: Enumify all magic constants for I8042 devices
This makes the code much easier to read.
This commit is contained in:
parent
0a748de1a0
commit
26c84967fa
4 changed files with 115 additions and 82 deletions
|
@ -63,7 +63,7 @@ void PS2KeyboardDevice::irq_handle_byte_read(u8 byte)
|
|||
break;
|
||||
}
|
||||
switch (ch) {
|
||||
case I8042_ACK:
|
||||
case I8042Response::Acknowledge:
|
||||
break;
|
||||
default:
|
||||
if ((m_modifiers & Mod_Alt) != 0 && ch >= 2 && ch <= ConsoleManagement::s_max_virtual_consoles + 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue