gmamaladze / globalmousekeyhook

This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
MIT License
1.04k stars 257 forks source link

Patch 5 #159

Closed MarWelz closed 2 years ago

MarWelz commented 2 years ago

On multi-monitor systems, if a monitor is left and/or top of the primary monitor, it has negative screen coordinates. Therefore using (-1,-1) as "uninitialized" screen coordinates is not a good idea. So I changed it to coordinates which are clearly outside of any current and near-future monitors: (-99999,-99999).