summaryrefslogtreecommitdiff
path: root/include/android/input.h
diff options
context:
space:
mode:
author arthurhung <arthurhung@google.com> 2020-12-30 16:58:01 +0800
committer arthurhung <arthurhung@google.com> 2021-03-08 21:40:13 +0800
commit7632c3391394a47cface411997ce03d126d1e4da (patch)
treef4c4ab55383c089cb766c95442dfd958a5c78fb3 /include/android/input.h
parent335c73a433ab3e7e158204d09a6f1f5f6a2ff1dc (diff)
Move drag event to InputDispatcher (1/n)
This CL adds the ability to send a DRAG event through the InputChannel, and adds the appropriate processing logic to InputPublisher and InputConsumer. Bug: 158242495 Test: atest libinput_tests InputPublisherAndConsumerTest Change-Id: I7aead341a9851facf654024c476bd6d7eaae4590
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 797348742d..6fe95c0fc3 100644
--- a/include/android/input.h
+++ b/include/android/input.h
@@ -166,6 +166,9 @@ enum {
/** Capture event */
AINPUT_EVENT_TYPE_CAPTURE = 4,
+
+ /** Drag event */
+ AINPUT_EVENT_TYPE_DRAG = 5,
};
/**