summaryrefslogtreecommitdiffstats
path: root/include/input
diff options
context:
space:
mode:
authorAnthony Hugh <ahugh@google.com>2015-06-23 10:49:05 -0700
committerAnthony Hugh <ahugh@google.com>2015-06-24 14:42:17 -0700
commit9e415d719e4ceb7a3e93c0d60f9c3bf9ee4fc97f (patch)
tree5ab555e9121880551d66248dc06f095ff8e35c6f /include/input
parent8728c390476110857dd6b290dac3bfdf13b33e81 (diff)
downloadframeworks_native-9e415d719e4ceb7a3e93c0d60f9c3bf9ee4fc97f.zip
frameworks_native-9e415d719e4ceb7a3e93c0d60f9c3bf9ee4fc97f.tar.gz
frameworks_native-9e415d719e4ceb7a3e93c0d60f9c3bf9ee4fc97f.tar.bz2
DO NOT MERGE: Introduce stem keycodes for Wear
Cherry-pick from master This change adds four new stem keycodes for Android Wear. These keycodes are intended to represent the various hardware buttons around the watch. There is one primary stem key that will be used for power/settings and three generic stem keys that will be customizable. BUG: 21903503 Change-Id: I762b8c0bcf3780a1756f4c1b8bbf07a039ba7781
Diffstat (limited to 'include/input')
-rw-r--r--include/input/InputEventLabels.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/input/InputEventLabels.h b/include/input/InputEventLabels.h
index 9aa7425..8a339f7 100644
--- a/include/input/InputEventLabels.h
+++ b/include/input/InputEventLabels.h
@@ -299,6 +299,10 @@ static const InputEventLabel KEYCODES[] = {
DEFINE_KEYCODE(TV_MEDIA_CONTEXT_MENU),
DEFINE_KEYCODE(TV_TIMER_PROGRAMMING),
DEFINE_KEYCODE(HELP),
+ DEFINE_KEYCODE(STEM_PRIMARY),
+ DEFINE_KEYCODE(STEM_1),
+ DEFINE_KEYCODE(STEM_2),
+ DEFINE_KEYCODE(STEM_3),
{ NULL, 0 }
};