Expand description
PS/2 Mouse driver (IRQ12)
Supports standard 3-byte PS/2 mouse and IntelliMouse (4-byte, scroll wheel). Initialization follows the standard PS/2 controller protocol via I/O ports 0x60 (data) and 0x64 (command/status).
Structs§
- Mouse
Event - A decoded mouse event.
Statics§
- MOUSE_
READY - Mouse is initialized and streaming
Functions§
- handle_
irq - Called from the IDT IRQ12 handler (interrupt context, interrupts disabled).
- has_
event - Returns
trueif at least one mouse event is pending. - init
- Initialize the PS/2 mouse.
- mouse_
pos - Returns the current accumulated mouse position (pixel coordinates).
- read_
event - Dequeue the oldest mouse event (non-blocking).