diff options
author | 2022-09-12 20:45:30 +0000 | |
---|---|---|
committer | 2022-09-12 21:59:08 +0000 | |
commit | 741111bd79f8ac9daa3d9fca35bc491fda08685b (patch) | |
tree | bf28062a390acedfde1d8a1970e1901c89059fcf /include/android/keycodes.h | |
parent | 1272fe9c0912a17de585e29f31faab1c53504073 (diff) |
Add Android keycodes for stylus buttons
Ensure the new stylus buttons are not yet sent to apps.
DD: go/android-stylus-buttons
Bug: 246394583
Test: Build, Presubmit
Change-Id: I3f429c3435c90429c908fb77f8dbf964290d47aa
Diffstat (limited to 'include/android/keycodes.h')
-rw-r--r-- | include/android/keycodes.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/android/keycodes.h b/include/android/keycodes.h index 16a13d6cd3..e5b5db2964 100644 --- a/include/android/keycodes.h +++ b/include/android/keycodes.h @@ -818,6 +818,17 @@ enum { /** Keyboard backlight Toggle key. * Toggles the keyboard backlight on/off. */ AKEYCODE_KEYBOARD_BACKLIGHT_TOGGLE = 307, + /** The primary button on the barrel of a stylus. + * This is usually the button closest to the tip of the stylus. */ + AKEYCODE_STYLUS_BUTTON_PRIMARY = 308, + /** The secondary button on the barrel of a stylus. + * This is usually the second button from the tip of the stylus. */ + AKEYCODE_STYLUS_BUTTON_SECONDARY = 309, + /** The tertiary button on the barrel of a stylus. + * This is usually the third button from the tip of the stylus. */ + AKEYCODE_STYLUS_BUTTON_TERTIARY = 310, + /** A button on the tail end of a stylus. */ + AKEYCODE_STYLUS_BUTTON_TAIL = 311, // NOTE: If you add a new keycode here you must also add it to several other files. // Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list. |