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

Commit 41d6b0ba authored by Steve Kondik's avatar Steve Kondik
Browse files

Additional keycodes for Vision.

Change-Id: Ia23ec2da6560945ae31632197a0b8d032cb8abed
parent 67cbcd01
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -129,6 +129,11 @@ public class KeyEvent implements Parcelable {
    public static final int KEYCODE_FUNC_7          = 98;
    public static final int KEYCODE_FUNC_8          = 99;
    public static final int KEYCODE_QUECHAR         = 100;
    public static final int KEYCODE_USER1           = 101;
    public static final int KEYCODE_USER2           = 102;
    public static final int KEYCODE_USER3           = 103;
    public static final int KEYCODE_USER4           = 104;
    public static final int KEYCODE_USER5           = 105;

    // NOTE: If you add a new keycode here you must also add it to:
    //  isSystem()
@@ -144,7 +149,7 @@ public class KeyEvent implements Parcelable {
    //  those new codes.  This is intended to maintain a consistent
    //  set of key code definitions across all Android devices.

    private static final int LAST_KEYCODE           = KEYCODE_QUECHAR;
    private static final int LAST_KEYCODE           = KEYCODE_USER5;

    /**
     * @deprecated There are now more than MAX_KEYCODE keycodes.
+6 −1
Original line number Diff line number Diff line
@@ -925,6 +925,11 @@
        <enum name="KEYCODE_FUNC_7" value="98" />
        <enum name="KEYCODE_FUNC_8" value="99" />
        <enum name="KEYCODE_QUECHAR" value="100" />
        <enum name="KEYCODE_USER1" value="101" />
        <enum name="KEYCODE_USER2" value="102" />
        <enum name="KEYCODE_USER3" value="103" />
        <enum name="KEYCODE_USER4" value="104" />
        <enum name="KEYCODE_USER5" value="105" />
    </attr>

    <!-- ***************************************************************** -->
+11 −1
Original line number Diff line number Diff line
@@ -123,6 +123,11 @@ static const KeycodeLabel KEYCODES[] = {
    { "FUNC_7", 98 },
    { "FUNC_8", 99 },
    { "QUECHAR", 100 },
    { "USER1", 101 },
    { "USER2", 102 },
    { "USER3", 103 },
    { "USER4", 104 },
    { "USER5", 105 },

    // NOTE: If you add a new keycode here you must also add it to:
    //   (enum KeyCode, in this file)
@@ -236,7 +241,12 @@ typedef enum KeyCode {
    kKeyCodeFunc6 = 97,
    kKeyCodeFunc7 = 98,
    kKeyCodeFunc8 = 99,
    kKeyCodeQuechar = 100
    kKeyCodeQuechar = 100,
    kKeyCodeUser1 = 101,
    kKeyCodeUser2 = 102,
    kKeyCodeUser3 = 103,
    kKeyCodeUser4 = 104,
    kKeyCodeUser5 = 105
} KeyCode;

static const KeycodeLabel FLAGS[] = {