Method

GdkEventget_device

Declaration [src]

GdkDevice*
gdk_event_get_device (
  const GdkEvent* event
)

Description [src]

If the event contains a “device” field, this function will return it, else it will return NULL.

Available since:3.0

Return value

Type: GdkDevice

A GdkDevice, or NULL.

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