Device.getState

Gets the current state of a pointer device relative to @window. As a slave device’s coordinates are those of its master pointer, this function may not be called on devices of type %GDK_DEVICE_TYPE_SLAVE, unless there is an ongoing grab on them. See gdk_device_grab().

class Device
void
getState

Parameters

window Window

a #GdkWindow.

axes double[]

an array of doubles to store the values of the axes of @device in, or %NULL.

mask GdkModifierType

location to store the modifiers, or %NULL.

Meta