Device.getSource

Determines the type of the device. Since 2.20

class Device
getSource
()

Return Value

a GdkInputSource

Meta