summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-06-05 11:41:46 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-06-05 11:41:46 +1000
commit56400ef5ea89dbf16ba7f48a2f375d957f4c375d (patch)
tree65e63bc5335eb009cbc822fa083743dbfc68aa34 /include
parentf27459613e106db6c5647194b5baf8cd89c6ad6b (diff)
Add evemu_get_abs_current() to retrieve the current value
Applications that use evemu need this for ABS_MT_SLOT so they can start working on the first touchpoint, rather than waiting for the slot to change.
Diffstat (limited to 'include')
-rw-r--r--include/evemu.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/evemu.h b/include/evemu.h
index 52e4297..06431b6 100644
--- a/include/evemu.h
+++ b/include/evemu.h
@@ -192,6 +192,16 @@ void evemu_set_abs_minimum(struct evemu_device *dev, int code, int min);
int evemu_get_abs_maximum(const struct evemu_device *dev, int code);
/**
+ * evemu_get_abs_current() - get kernel current value of event type
+ * @dev: the device in use
+ * @code: the event type code to query
+ *
+ * Returns the current value of the specified event type.
+ */
+int evemu_get_abs_current_value(const struct evemu_device *dev, int code);
+
+
+/**
* evemu_set_abs_maximum() - set kernel maximum value of event type
*
* @dev: the device in use