Expand description
PS/2 Keyboard driver (inspired by MaestroOS keyboard.rs)
Handles IRQ1 keyboard interrupts, reads scancodes from port 0x60, and converts them to characters for the VGA console.
Structs§
- Keyboard
State - Keyboard state
Constants§
Statics§
- KEYBOARD
- Global keyboard state
Functions§
- add_
to_ buffer - Add a character to the keyboard buffer (called from IRQ context).
- handle_
scancode - Handle a keyboard IRQ (called from interrupt handler)
- handle_
scancode_ raw - Same as
handle_scancodebut takes a pre-read scancode byte. - has_
input - Check if keyboard buffer has data (task context only).
- read_
char - Get a character from the keyboard buffer (non-blocking, task context only).