get_device


Description:

[ Version ( since = "1.0" ) ]
public unowned InputDevice get_device ()

Retrieves the InputDevice for the event.

If you want the physical device the event originated from, use get_source_device.

The InputDevice structure is completely opaque and should be cast to the platform-specific implementation.

Parameters:

this

a Event

Returns:

the InputDevice or null. The returned device is owned by the Event and it should not be unreferenced