GII device capabilities description
Name
gii_cmddata_devinfo : GII device capabilities description
Synopsis
#include <ggi/gii-events.h> struct gii_cmddata_devinfo { #define GII_MAX_DEVNMAME 32 char devname[GII_MAX_DEVNAME]; #define GII_VENDOR_GGI_PROJECT 0 #define GII_PRODUCT_GGI_PROJECT 0 uint32_t vendor_id; uint32_t product_id; gii_event_mask can_generate; #define GII_NUM_UNKNOWN 0xffffffff uint32_t num_registers; uint32_t num_valuators; uint32_t num_button; };
Description
This structure describe an input device. It is used for notifying new devices or device state changes.
Structure Members
- devname
A human-readable NULL terminated string identifying the device.
- vendor_id
Vendor of the input device.
- product_id
Product id of the input device.
- can_generate
This mask tells what kind of events this device can generate.
- num_registers
The number of users. GII_NUM_UNKNOWN mean that the number of registers is not known. This is the usual initialization value.
- num_valuators
The number of valuators this device has. GII_NUM_UNKNOWN means that the number of valuators is not known.
- num_buttons
The number of button this device has. GII_NUM_UNKNOWN means that the number of button is not known.