Display.getPointer

void getPointer(out gdk.screen.Screen screen, out int x, out int y, out gdk.types.ModifierType mask)

Gets the current location of the pointer and the current modifier mask for a given display.

Parameters

screenlocation to store the screen that the cursor is on, or null.
xlocation to store root window X coordinate of pointer, or null.
ylocation to store root window Y coordinate of pointer, or null.
masklocation to store current modifier mask, or null

Deprecated

Use [gdk.device.Device.getPosition] instead.