readmouse
A very small library for reading the mouse location and mouse button presses on macOS.
Example usage
Continuously print the mouse location:
use Mouse;
Related
readkey - Find out if a key on the keyboard is currently pressed on macOS.