Design and Implementation of a PS/2 Compatible Mouse Driver in a Protected Mode Environment
Developing a PS/2 mouse driver requires precise manipulation of low-level hardware ports and interrupt handling. While seemingly archaic, the protocol offers deterministic timing characteristics advantageous in real-time systems, unlike the polled nature of USB. By correctly managing the 8042 controller, handling IRQ12, and decoding the 3-byte relative movement packets, a developer can implement robust pointer input for any bare-metal or kernel-level application. ps/2 compatible mouse driver
The driver processes this data and sends it to the operating system, which then uses it to update the mouse cursor position, perform actions, and execute commands. Design and Implementation of a PS/2 Compatible Mouse
X Movement (9-bit signed integer, low 8 bits) Byte 3: Y Movement (9-bit signed integer, low 8 bits) The driver processes this data and sends it
The driver must first ensure the 8042 is configured to translate and relay mouse interrupts.