An event type integer from hs.eventtap.eventTypes (e.g. leftMouseDown)
Horizontal position in Hammerspoon screen coordinates
Vertical position in Hammerspoon screen coordinates
Mouse button number (0=left, 1=right, 2=middle)
An HSEventTapEvent, or null if the event could not be created
Create a mouse event at the given position. Coordinates are in Hammerspoon screen coordinates (top-left origin of the primary display, y increases downward), matching the values returned by
hs.screen.