Function

GdkX11x11_device_manager_lookup

since: 3.2

Declaration [src]

GdkDevice*
gdk_x11_device_manager_lookup (
  GdkDeviceManager* device_manager,
  gint device_id
)

Description [src]

Returns the GdkDevice that wraps the given device ID.

Available since: 3.2

Parameters

device_manager

Type: GdkX11DeviceManagerCore

A GdkDeviceManager.

The data is owned by the caller of the function.
device_id

Type: gint

A device ID, as understood by the XInput2 protocol.

Return value

Type: GdkX11DeviceCore

The GdkDevice wrapping the device ID, or NULL if the given ID doesn’t currently represent a device.

The data is owned by the called function.
The return value can be NULL.