summaryrefslogtreecommitdiff
path: root/include/android/input.h
diff options
context:
space:
mode:
author Antonio Kantek <kanant@google.com> 2021-07-13 18:04:53 -0700
committer Antonio Kantek <kanant@google.com> 2021-07-14 17:48:48 -0700
commit7cdf8ef17636cdc5cc5fe41578951b4b1f23865c (patch)
tree56f026c7cbdb7efc01ba46ae526afdfb5d55eb31 /include/android/input.h
parent81fc73800743003c669f4d2bacdb9ab6408696eb (diff)
TouchEvent (1/n): Adding TouchModeEvent to InputChannel
This CL detaches the touch mode state update from focus update. It does that by introducing a new internal event (TouchModeEvent). This CL also adds this event to InputChannel and related processing logic to InputPublisher and InputConsumer. InputDispatcher will process two different events now: FocusEvent when gaining/losing focus and TouchModeEvent when entering/leaving touch mode. Test: atest libinput_tests Bug: 193718270 Change-Id: Ie4e5b6e8e798f12d7203127b4559fa40d38788de
Diffstat (limited to 'include/android/input.h')
-rw-r--r--include/android/input.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/android/input.h b/include/android/input.h
index bb98beb41a..f03facb929 100644
--- a/include/android/input.h
+++ b/include/android/input.h
@@ -169,6 +169,9 @@ enum {
/** Drag event */
AINPUT_EVENT_TYPE_DRAG = 5,
+
+ /** TouchMode event */
+ AINPUT_EVENT_TYPE_TOUCH_MODE = 6,
};
/**