summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-07-25 18:43:17 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-07-25 18:47:46 +0000
commit571797962883359d42b27aba9b2c0bc0b6785f71 (patch)
treea689890b218161248db94eea9582c54c0b9cc913
parent0c07eec181fdd73cb256cf234e77db6078e17036 (diff)
InputEventLabels: Use EV_ABS when looking for tool type label
Using EV_MSC for querying tool type label seems to be a typo. Bug: None Test: None Change-Id: Idf3da2d5a2e7c16e32dcc326f1d2bde89705b56b
-rw-r--r--libs/input/InputEventLabels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/input/InputEventLabels.cpp b/libs/input/InputEventLabels.cpp
index bade68629d..50efac1314 100644
--- a/libs/input/InputEventLabels.cpp
+++ b/libs/input/InputEventLabels.cpp
@@ -556,7 +556,7 @@ const label* getValueLabelsForTypeAndCode(int32_t type, int32_t code) {
if (type == EV_KEY) {
return ev_key_value_labels;
}
- if (type == EV_MSC && code == ABS_MT_TOOL_TYPE) {
+ if (type == EV_ABS && code == ABS_MT_TOOL_TYPE) {
return mt_tool_labels;
}
return nullptr;