readmouse 0.1.6

A very small library for reading the mouse location macOS.
Documentation

readmouse

A very small library for reading the mouse location on macOS.

Example usage

Continuously print the mouse location:

use readmouse::Mouse;

fn main() {
  loop {
    println!("Mouse (x, y) location: {:?}", Mouse::location());
  }
}

Related

readkey - Find out if a key is currently pressed on macOS.