[PATCH 2/3] evdev: Add quirks to device structure and add an enum of quirks

Rob Bradford rob at robster.org.uk
Fri Sep 21 07:04:16 PDT 2012


From: Rob Bradford <rob at linux.intel.com>

---
 src/evdev.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/evdev.h b/src/evdev.h
index 85c4739..9ae62db 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -44,6 +44,11 @@ enum evdev_device_capability {
 	EVDEV_TOUCH = (1 << 4),
 };
 
+enum evdev_device_quirks {
+	EVDEV_QUIRK_NONE = 0,
+	EVDEV_QUIRK_SWAP_AXES = (1 << 0),
+};
+
 struct evdev_device {
 	struct weston_seat *seat;
 	struct wl_list link;
@@ -71,6 +76,7 @@ struct evdev_device {
 
 	enum evdev_event_type pending_events;
 	enum evdev_device_capability caps;
+	uint32_t quirks;
 
 	int is_mt;
 };
-- 
1.7.11.2



More information about the wayland-devel mailing list