GdkEventButton.device

the master device that the event originated from. Use gdk_event_get_source_device() to get the slave device.

struct GdkEventButton
GdkDevice* device;

Meta