Event.setDevice

void setDevice(gdk.device.Device device)

Sets the device for event to device. The event must have been allocated by GTK+, for instance, by [gdk.event.Event.copy].

Parameters

devicea #GdkDevice