location to store the screen that the cursor is on, or NULL.
location to store root window X coordinate of pointer, or NULL.
location to store root window Y coordinate of pointer, or NULL.
location to store current modifier mask, or NULL
Deprecated: Use Device.getPosition instead.
2.2
Gets the current location of the pointer and the current modifier mask for a given display.