get_associated_device


Description:

[ Version ( since = "3.0" ) ]
public unowned Device? get_associated_device ()

Returns the associated device to this, if this is of type gdk_device_type_master, it will return the paired pointer or keyboard.

If this is of type gdk_device_type_slave, it will return the master device to which this is attached to.

If this is of type gdk_device_type_floating, null will be returned, as there is no associated device.

Parameters:

this

a Device

Returns:

The associated device, or null