mouseLocationOutsideOfEventStream
The current location of the pointer reckoned in the window’s base coordinate system, regardless of the current event being handled or of any events pending.
Declaration
var mouseLocationOutsideOfEventStream: NSPoint { get }Discussion
For the same information in screen coordinates, use NSEvent’s mouseLocation.