A basic interface to interact with a PS2 mouse.
Creates a new
pub fn get_state(&self) -> MouseState[src]
Returns the last completed state of the mouse.
Attempts to initialize a
Mouse. If successful, interrupts will be generated
PIC offset + 12.
pub fn process_packet(&mut self, packet: u8)[src]
Attempts to process a packet.
pub fn set_on_complete(&mut self, handler: fn(_: MouseState))[src]
on_complete function to be called when a packet is completed.
type Error = Infallible
The type returned in the event of a conversion error.