GEIS 2.0
Gesture Engine Interface Support
|
Data Structures | |
class | GeisDevice |
A gesture-capable input device. More... | |
Functions | |
void | geis_register_device_callback (Geis geis, GeisEventCallback event_callback, void *context) |
void | geis_device_ref (GeisDevice device) |
Adds a reference count to a device. | |
void | geis_device_unref (GeisDevice device) |
Removes a reference count from a device. | |
GeisString | geis_device_name (GeisDevice device) |
Gets the name of the input device. | |
GeisInteger | geis_device_id (GeisDevice device) |
Gets the system identifier of the iput device. | |
GeisSize | geis_device_attr_count (GeisDevice device) |
Gets the number of attributes of the device. | |
GeisAttr | geis_device_attr (GeisDevice device, GeisSize index) |
Gets the indicated attribute of the device. | |
Device Event Attributes | |
#define | GEIS_EVENT_ATTRIBUTE_DEVICE |
The event attribute containing a pointer to a GeisDevice. | |
Device Attributes | |
#define | GEIS_DEVICE_ATTRIBUTE_NAME |
The name of the input device. | |
#define | GEIS_DEVICE_ATTRIBUTE_ID |
The unique integer ID of the device. | |
#define | GEIS_DEVICE_ATTRIBUTE_TOUCHES |
The maximum number of touches a device is capable of reporting. | |
#define | GEIS_DEVICE_ATTRIBUTE_DIRECT_TOUCH |
Indicates the device is a direct touch device. | |
#define | GEIS_DEVICE_ATTRIBUTE_INDEPENDENT_TOUCH |
Indicates the device is an independent touch device. |
#define GEIS_DEVICE_ATTRIBUTE_DIRECT_TOUCH |
Indicates the device is a direct touch device.
The present of this boolean attribute with a value of GEIS_TRUE indicates the device is a direct touch multi-touch device (for example, a touchscreen), otherwise it is an indirect touch device (such as a touchpad) or not a touch device at all.
#define GEIS_DEVICE_ATTRIBUTE_ID |
The unique integer ID of the device.
Guaranteed unique within a Geis instance.
#define GEIS_DEVICE_ATTRIBUTE_INDEPENDENT_TOUCH |
Indicates the device is an independent touch device.
The presence of this boolean attribute with a value of GEIS_TRUE indicates the device is an independent touch device (for example, an Apple MagicMouse). Other multi-touch devices should report GEIS_FALSE.
#define GEIS_DEVICE_ATTRIBUTE_NAME |
The name of the input device.
Not guaranteed unique.
#define GEIS_DEVICE_ATTRIBUTE_TOUCHES |
The maximum number of touches a device is capable of reporting.
This integer is the number if simultaneous touches the device claims to be able to detect if it is a multi-touch device. A value of zero indicates the maximum number of touches can not be determined.
#define GEIS_EVENT_ATTRIBUTE_DEVICE |
The event attribute containing a pointer to a GeisDevice.
The GEIS_EVENT_DEVICE_AVAILABLE and GEIS_EVENT_DEVICE_UNAVAILABLE events should have a GEIS_ATTR_TYPE_POINTER attribute with this name. It should contain a pointer to a GeisDevice describing the device made available or unavailable.
GeisAttr geis_device_attr | ( | GeisDevice | device, |
GeisSize | index | ||
) | [inherited] |
Gets the indicated attribute of the device.
[in] | device | The device. |
[in] | index | Indicates which attr to retrieve. |
GeisSize geis_device_attr_count | ( | GeisDevice | device | ) | [inherited] |
Gets the number of attributes of the device.
[in] | device | The device. |
GeisInteger geis_device_id | ( | GeisDevice | device | ) | [inherited] |
Gets the system identifier of the iput device.
[in] | device | The device. |
The system-defined device identifier is system- and possibly device-dependent.
GeisString geis_device_name | ( | GeisDevice | device | ) | [inherited] |
Gets the name of the input device.
[in] | device | The device. |
void geis_device_ref | ( | GeisDevice | device | ) | [inherited] |
Adds a reference count to a device.
[in] | device | The device. |
An application that wishes to guarantee the device object remains valid should add a reference using this call, and unref when the object is no longer needed.
void geis_device_unref | ( | GeisDevice | device | ) | [inherited] |
Removes a reference count from a device.
[in] | device | The device. |
This function decrements the number of references to the device and, if the number of references hits zero, deletes the device.