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 13:26:55 -0700
commit887b00dd28627d635f06a1ffca27553f265b28e0 (patch)
tree7e18608b12aefbbb79e536e5257e6f33459a5fa1 /include/input
parent12b26278dfa582b77c657d1d2bdf75e9443d4062 (diff)
downloadframeworks_native-887b00dd28627d635f06a1ffca27553f265b28e0.zip
frameworks_native-887b00dd28627d635f06a1ffca27553f265b28e0.tar.gz
frameworks_native-887b00dd28627d635f06a1ffca27553f265b28e0.tar.bz2
Introduce stem keycodes for Wear
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: I60f87f027fa4d4b19933d96b4110019805b30895
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 3962001..a38de00 100644
--- a/include/input/InputEventLabels.h
+++ b/include/input/InputEventLabels.h
@@ -303,6 +303,10 @@ static const InputEventLabel KEYCODES[] = {
DEFINE_KEYCODE(NAVIGATE_NEXT),
DEFINE_KEYCODE(NAVIGATE_IN),
DEFINE_KEYCODE(NAVIGATE_OUT),
+ DEFINE_KEYCODE(STEM_PRIMARY),
+ DEFINE_KEYCODE(STEM_1),
+ DEFINE_KEYCODE(STEM_2),
+ DEFINE_KEYCODE(STEM_3),
{ NULL, 0 }
};