Next: , Previous: ClutterDesaturateEffect, Up: Top


29 ClutterDeviceManager

Maintains the list of input devices

29.1 Overview

<clutter-device-manager> is a singleton object, owned by Clutter, which maintains the list of <clutter-input-device>s.

Depending on the backend used by Clutter it is possible to use the <"device-added"> and <"device-removed"> to monitor addition and removal of devices.

<clutter-device-manager> is available since Clutter 1.2

29.2 Usage

— Function: clutter-device-manager-list-devices (self <clutter-device-manager>) ⇒  (ret gslist-of)
— Method: list-devices

Lists all currently registered input devices

device-manager
a <clutter-device-manager>
ret
a newly allocated list of <clutter-input-device> objects. Use g-slist-free to deallocate it when done.

Since 1.2

— Function: clutter-device-manager-peek-devices (self <clutter-device-manager>) ⇒  (ret gslist-of)
— Method: peek-devices

Lists all currently registered input devices

device-manager
a <clutter-device-manager>
ret
a pointer to the internal list of <clutter-input-device> objects. The returned list is owned by the <clutter-device-manager> and should never be modified or freed.

Since 1.2

— Function: clutter-device-manager-get-device (self <clutter-device-manager>) (device_id int) ⇒  (ret <clutter-input-device*>)
— Method: get-device

Retrieves the <clutter-input-device> with the given device-id

device-manager
a <clutter-device-manager>
device-id
the integer id of a device
ret
a <clutter-input-device> or ‘#f’. The returned device is owned by the <clutter-device-manager> and should never be modified or freed.

Since 1.2