summaryrefslogtreecommitdiff
path: root/src/evdev-private.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-05-30 16:31:48 +0100
committerKristian Høgsberg <krh@bitplanet.net>2012-05-31 15:42:15 -0400
commit33965c242d81c9980d7b20b8adaa8c88a05f6109 (patch)
tree2782d92dd70e2e80ade9773b6d8886366b54840a /src/evdev-private.h
parent1d637772c821b8becd5f1ddfa97199955b199993 (diff)
evdev: Add device capabilities
Does what it says on the box: lists whether or not the device supports key, absolute, relative or touch classes. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src/evdev-private.h')
-rw-r--r--src/evdev-private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/evdev-private.h b/src/evdev-private.h
index e4bcf13..7b56b54 100644
--- a/src/evdev-private.h
+++ b/src/evdev-private.h
@@ -44,6 +44,14 @@ enum evdev_event_type {
EVDEV_RELATIVE_MOTION = (1 << 4),
};
+enum evdev_device_capability {
+ EVDEV_KEYBOARD = (1 << 0),
+ EVDEV_BUTTON = (1 << 1),
+ EVDEV_MOTION_ABS = (1 << 2),
+ EVDEV_MOTION_REL = (1 << 3),
+ EVDEV_TOUCH = (1 << 4),
+};
+
struct evdev_input_device {
struct evdev_seat *master;
struct wl_list link;
@@ -69,6 +77,7 @@ struct evdev_input_device {
} rel;
enum evdev_event_type pending_events;
+ enum evdev_device_capability caps;
int is_mt;
};