diff options
author | 2022-12-15 18:15:39 +0000 | |
---|---|---|
committer | 2023-03-06 22:38:50 +0000 | |
commit | fcf20b80e15ad23e31bb33e422495eaed2fc7448 (patch) | |
tree | a109b98d357bcef5abd8baa266502b8837d6aac2 /libs/input/InputEventLabels.cpp | |
parent | 8807967f7be5992cf334740f73115f10e308727a (diff) |
[1/4] Add user customizable MACRO_x keys in frameworks
Define keycode in frameworks/native as input labels
Project details can be found at
go/dipper-custom-button
Bug: 269742724
Test: local build
Change-Id: I9af8e14892f65e14319f34421063ef330a02078e
Diffstat (limited to 'libs/input/InputEventLabels.cpp')
-rw-r--r-- | libs/input/InputEventLabels.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/input/InputEventLabels.cpp b/libs/input/InputEventLabels.cpp index dd7cbb5ba9..5a9dae65ed 100644 --- a/libs/input/InputEventLabels.cpp +++ b/libs/input/InputEventLabels.cpp @@ -340,7 +340,11 @@ namespace android { DEFINE_KEYCODE(STYLUS_BUTTON_SECONDARY), \ DEFINE_KEYCODE(STYLUS_BUTTON_TERTIARY), \ DEFINE_KEYCODE(STYLUS_BUTTON_TAIL), \ - DEFINE_KEYCODE(RECENT_APPS) + DEFINE_KEYCODE(RECENT_APPS), \ + DEFINE_KEYCODE(MACRO_1), \ + DEFINE_KEYCODE(MACRO_2), \ + DEFINE_KEYCODE(MACRO_3), \ + DEFINE_KEYCODE(MACRO_4) // NOTE: If you add a new axis here you must also add it to several other files. // Refer to frameworks/base/core/java/android/view/MotionEvent.java for the full list. |