Narsil / rdev

Simple library to listen and send events to keyboard and mouse (MacOS, Windows, Linux)
MIT License
503 stars 124 forks source link

Add drag event on macos #140

Open qzd1989 opened 3 months ago

qzd1989 commented 3 months ago

Supported on macos and windows, this branch is based on my stop_listen branch.

drag event type like this: Drag { button: Left, x: 2447.921875, y: 805.1796875 }

It also can be simulated smoothly.

I also provide the coordinate in press and release event, their types like this: ButtonPress { button: Left, x: 2570.92578125, y: 797.49609375 } ButtonRelease { button: Left, x: 2570.92578125, y: 797.49609375 }