diff options
author | 2023-09-26 10:11:34 +0000 | |
---|---|---|
committer | 2023-10-02 13:55:43 +0000 | |
commit | b2aff84fcf453b4524bbd4c628d00ae0f0d93f4c (patch) | |
tree | 8bad5d91eb7ca2aa4a9ae928ae8df0002be92d3e /libs/input/InputEventLabels.cpp | |
parent | 9e8407669e0b419379c60341c604e36cd4be5f9e (diff) |
Add flag to mark key usage code as a fallback mapping
We don't yet have a way to determine if a device can actually report a
usage code. Adding a flag to mark usage code as fallback only mapping.
Bug: 297094448
Test: atest inputflinger_tests
Change-Id: I137113d0dc9a1c8abf523b96942486be176d0240
Diffstat (limited to 'libs/input/InputEventLabels.cpp')
-rw-r--r-- | libs/input/InputEventLabels.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/input/InputEventLabels.cpp b/libs/input/InputEventLabels.cpp index c218e1e858..0e627e56fd 100644 --- a/libs/input/InputEventLabels.cpp +++ b/libs/input/InputEventLabels.cpp @@ -430,7 +430,8 @@ namespace android { DEFINE_FLAG(VIRTUAL), \ DEFINE_FLAG(FUNCTION), \ DEFINE_FLAG(GESTURE), \ - DEFINE_FLAG(WAKE) + DEFINE_FLAG(WAKE), \ + DEFINE_FLAG(FALLBACK_USAGE_MAPPING) // clang-format on |