Add a property for device/product ID.

In some cases, knowing about the device model number and the device's vendor
is important to activate product-specific settings. Since this is
nonetheless driver-specific, only provide the property but don't do anything
with it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Peter Hutterer 2011-05-18 15:00:54 +10:00
parent f26a5b9a99
commit 4621bb270a

View File

@ -35,6 +35,11 @@
/* BOOL. If present, device is a virtual XTEST device */ /* BOOL. If present, device is a virtual XTEST device */
#define XI_PROP_XTEST_DEVICE "XTEST Device" #define XI_PROP_XTEST_DEVICE "XTEST Device"
/* CARD32, 2 values, vendor, product.
* This property is set by the driver and may not be available for some
* drivers. Read-Only */
#define XI_PROP_PRODUCT_ID "Device Product ID"
/* Coordinate transformation matrix for absolute input devices /* Coordinate transformation matrix for absolute input devices
* FLOAT, 9 values in row-major order, coordinates in 0..1 range: * FLOAT, 9 values in row-major order, coordinates in 0..1 range:
* [c0 c1 c2] [x] * [c0 c1 c2] [x]