Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 209ea40e authored by Anthony Hugh's avatar Anthony Hugh Committed by Android Git Automerger
Browse files

am 9e415d71: DO NOT MERGE: Introduce stem keycodes for Wear

* commit '9e415d71':
  DO NOT MERGE: Introduce stem keycodes for Wear
parents d2fb7a6e 9e415d71
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -302,7 +302,16 @@ enum {
    AKEYCODE_TV_CONTENTS_MENU = 256,
    AKEYCODE_TV_MEDIA_CONTEXT_MENU = 257,
    AKEYCODE_TV_TIMER_PROGRAMMING = 258,
    AKEYCODE_HELP            = 259
    AKEYCODE_HELP            = 259,
    /** Primary stem key for Wear
     * Main power/reset button on watch. */
    AKEYCODE_STEM_PRIMARY = 264,
    /** Generic stem key 1 for Wear */
    AKEYCODE_STEM_1 = 265,
    /** Generic stem key 2 for Wear */
    AKEYCODE_STEM_2 = 266,
    /** Generic stem key 3 for Wear */
    AKEYCODE_STEM_3 = 267

    // 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.
+4 −0
Original line number Diff line number Diff line
@@ -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 }
};