get_source_device


Description:

[ Version ( since = "1.6" ) ]
public unowned InputDevice get_source_device ()

Retrieves the hardware device that originated the event.

If you need the virtual device, use get_device.

If no hardware device originated this event, this function will return the same device as get_device.

Parameters:

this

a Event

Returns:

a pointer to a InputDevice or null




2022 vala-language.org