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

Commit dbe1e971 authored by David Stevens's avatar David Stevens Committed by Android (Google) Code Review
Browse files

Merge "Add keycodes for diagonal dpad inputs"

parents 29370d3b 01ed1867
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -731,7 +731,15 @@ enum {
    /** Generic stem key 2 for Wear */
    /** Generic stem key 2 for Wear */
    AKEYCODE_STEM_2 = 266,
    AKEYCODE_STEM_2 = 266,
    /** Generic stem key 3 for Wear */
    /** Generic stem key 3 for Wear */
    AKEYCODE_STEM_3 = 267
    AKEYCODE_STEM_3 = 267,
    /** Directional Pad Up-Left */
    AKEYCODE_DPAD_UP_LEFT    = 268,
    /** Directional Pad Down-Left */
    AKEYCODE_DPAD_DOWN_LEFT  = 269,
    /** Directional Pad Up-Right */
    AKEYCODE_DPAD_UP_RIGHT   = 270,
    /** Directional Pad Down-Right */
    AKEYCODE_DPAD_DOWN_RIGHT = 271


    // NOTE: If you add a new keycode here you must also add it to several other files.
    // 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.
    //       Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
+4 −0
Original line number Original line Diff line number Diff line
@@ -307,6 +307,10 @@ static const InputEventLabel KEYCODES[] = {
    DEFINE_KEYCODE(STEM_1),
    DEFINE_KEYCODE(STEM_1),
    DEFINE_KEYCODE(STEM_2),
    DEFINE_KEYCODE(STEM_2),
    DEFINE_KEYCODE(STEM_3),
    DEFINE_KEYCODE(STEM_3),
    DEFINE_KEYCODE(DPAD_UP_LEFT),
    DEFINE_KEYCODE(DPAD_DOWN_LEFT),
    DEFINE_KEYCODE(DPAD_UP_RIGHT),
    DEFINE_KEYCODE(DPAD_DOWN_RIGHT),


    { NULL, 0 }
    { NULL, 0 }
};
};