From 7cdf8ef17636cdc5cc5fe41578951b4b1f23865c Mon Sep 17 00:00:00 2001 From: Antonio Kantek Date: Tue, 13 Jul 2021 18:04:53 -0700 Subject: 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 --- include/android/input.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/android/input.h') 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, }; /** -- cgit v1.2.3-59-g8ed1b