summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-05-18 15:00:54 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-05-26 15:27:10 +1000
commit4621bb270a36d35d4ab67f1d7fb47674683dfc5b (patch)
tree77644335b5b48d53c88e507a83c1ec1e93b85c40
parentf26a5b9a994a980ab309bc7f3b4295a4992d81c2 (diff)
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>
-rw-r--r--include/xserver-properties.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/xserver-properties.h b/include/xserver-properties.h
index a49291b91..2b1feabb6 100644
--- a/include/xserver-properties.h
+++ b/include/xserver-properties.h
@@ -35,6 +35,11 @@
/* BOOL. If present, device is a virtual 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
* FLOAT, 9 values in row-major order, coordinates in 0..1 range:
* [c0 c1 c2] [x]