summaryrefslogtreecommitdiff
path: root/include/input
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-05-26 16:32:06 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-05-26 16:32:06 +0000
commit2feca2d9c81c5c71dccca59cab04864d5dbcf101 (patch)
treedb24538c6d629a1208bf53b22fac528474200b18 /include/input
parent9afb1bcafb311c9381e509b7de958386478a83ab (diff)
parent1930f60ddfe3f2e3e7b5e7137772e1be84cc78e2 (diff)
Merge "Add a unit test for TouchpadInputMapper" into udc-dev am: 1930f60ddf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23267663 Change-Id: I3c3d4b54c17f0c82fbdfe6e6ea0000cba8b684c5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'include/input')
-rw-r--r--include/input/Input.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/input/Input.h b/include/input/Input.h
index fe0c775fd3..527a47741c 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -242,6 +242,19 @@ enum class ToolType {
ftl_last = PALM,
};
+/**
+ * The state of the key. This should have 1:1 correspondence with the values of anonymous enum
+ * defined in input.h
+ */
+enum class KeyState {
+ UNKNOWN = AKEY_STATE_UNKNOWN,
+ UP = AKEY_STATE_UP,
+ DOWN = AKEY_STATE_DOWN,
+ VIRTUAL = AKEY_STATE_VIRTUAL,
+ ftl_first = UNKNOWN,
+ ftl_last = VIRTUAL,
+};
+
bool isStylusToolType(ToolType toolType);
/*