Method

GdkEventget_device

since: 3.0

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 returned data is owned by the instance.
The return value can be NULL.