osx-mouse-click-listener
v1.0.1
Published
Mac OSX Global Mouse Click Listener
Downloads
6
Readme
OSX Mouse Listener
Installation
You can install the osx-mouse-click-listener
package using npm:
npm install osx-mouse-click-listener
Usage
To use the OSX Mouse Listener, you can import the startClickListener
function from the osx-mouse-click-listener
package and listen for mouse click events. Here's an example of how to use it:
import { startClickListener } from "osx-mouse-click-listener";
startClickListener().on("click", (coordinates) => {
console.log("Click detected");
console.log(coordinates);
});
Compilation Instructions for local testing
clang -framework Cocoa GlobalClickMonitor.m -o GlobalClickMonitor
./GlobalClickMonitor
TODO
- Makefile