summaryrefslogtreecommitdiff
path: root/include/android/input.h
diff options
context:
space:
mode:
author Jun Mukai <mukai@google.com> 2015-12-03 01:14:46 -0800
committer Jun Mukai <mukai@google.com> 2015-12-18 10:00:05 -0800
commitfa1706afaf12b48fe0ab6d4b061b614bf901b173 (patch)
treed469b20f7b3e57b79f74b90c951891a019c2bf2d /include/android/input.h
parent79a27adb5a5993a72d2c77f9ca692bfc57baf22c (diff)
Add relative-x/y axis for mouse devices.
Used by Ie21e521f3e5c581f976dc0feb5d84bfa48b046cd. Bug: 5452473 Change-Id: I4189eb4d93f50c2865b7a325727be5ceebcc71f8
Diffstat (limited to 'include/android/input.h')
-rw-r--r--include/android/input.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/android/input.h b/include/android/input.h
index 5eeb7fc89c..fd9fa98e70 100644
--- a/include/android/input.h
+++ b/include/android/input.h
@@ -651,6 +651,21 @@ enum {
*/
AMOTION_EVENT_AXIS_SCROLL = 26,
/**
+ * Axis constant: The movement of x position of a motion event.
+ *
+ * - For a mouse, reports a difference of x position between the previous position.
+ * This is useful when pointer is captured, in that case the mouse pointer doesn't
+ * change the location but this axis reports the difference which allows the app
+ * to see how the mouse is moved.
+ */
+ AMOTION_EVENT_AXIS_RELATIVE_X = 27,
+ /**
+ * Axis constant: The movement of y position of a motion event.
+ *
+ * Same as {@link RELATIVE_X}, but for y position.
+ */
+ AMOTION_EVENT_AXIS_RELATIVE_Y = 28,
+ /**
* Axis constant: Generic 1 axis of a motion event.
* The interpretation of a generic axis is device-specific.
*/