Function mouse::init

source ·
pub fn init(
    mouse: PS2Mouse<'static>,
    mouse_queue_producer: Queue<Event>
) -> Result<(), &'static str>
Expand description

Initialize the PS/2 mouse driver and register its interrupt handler.

Arguments

  • mouse: a wrapper around mouse functionality and id, used by the mouse interrupt handler.
  • mouse_queue_producer: the queue onto which the mouse interrupt handler will push new mouse events when a mouse action occurs.