ps2 mouse
This crate provides a basic interface for interacting with a ps2 mouse.
Basic Example
use ;
use Spinlock;
use PortReadOnly;
pub static MOUSE: = new;
// Initialize the mouse and set the on complete event.
// This will be fired when a packet is finished being processed.
// An example interrupt based on https://os.phil-opp.com/hardware-interrupts/. The ps2 mouse is configured to fire
// interrupts at PIC offset 12.
extern "x86-interrupt"