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

Commit 631e9599 authored by Steve Kondik's avatar Steve Kondik
Browse files

input: Additional keycodes for Espresso

Change-Id: Iced0401068b8ee7dae73fc63bba9e46c1049f1b0
parent 95c86bbe
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -332,6 +332,16 @@ public class KeyEvent extends InputEvent implements Parcelable {
     * On a game controller, the button labeled Mode. */
    public static final int KEYCODE_BUTTON_MODE     = 110;

    public static final int KEYCODE_FUNC_1          = 92;
    public static final int KEYCODE_FUNC_2          = 93;
    public static final int KEYCODE_FUNC_3          = 94;
    public static final int KEYCODE_FUNC_4          = 95;
    public static final int KEYCODE_FUNC_5          = 96;
    public static final int KEYCODE_FUNC_6          = 97;
    public static final int KEYCODE_FUNC_7          = 98;
    public static final int KEYCODE_FUNC_8          = 99;
    public static final int KEYCODE_QUECHAR         = 100;

    // NOTE: If you add a new keycode here you must also add it to:
    //  isSystem()
    //  native/include/android/keycodes.h
+9 −0
Original line number Diff line number Diff line
@@ -953,6 +953,15 @@
        <enum name="KEYCODE_BUTTON_START" value="108" />
        <enum name="KEYCODE_BUTTON_SELECT" value="109" />
        <enum name="KEYCODE_BUTTON_MODE" value="110" />
        <enum name="KEYCODE_FUNC_1" value="92" />
        <enum name="KEYCODE_FUNC_2" value="93" />
        <enum name="KEYCODE_FUNC_3" value="94" />
        <enum name="KEYCODE_FUNC_4" value="95" />
        <enum name="KEYCODE_FUNC_5" value="96" />
        <enum name="KEYCODE_FUNC_6" value="97" />
        <enum name="KEYCODE_FUNC_7" value="98" />
        <enum name="KEYCODE_FUNC_8" value="99" />
        <enum name="KEYCODE_QUECHAR" value="100" />	
    </attr>

    <!-- ***************************************************************** -->
+9 −0
Original line number Diff line number Diff line
@@ -135,6 +135,15 @@ static const KeycodeLabel KEYCODES[] = {
    { "BUTTON_START", 108 },
    { "BUTTON_SELECT", 109 },
    { "BUTTON_MODE", 110 },
    { "FUNC_1", 92 },
    { "FUNC_2", 93 },
    { "FUNC_3", 94 },
    { "FUNC_4", 95 },
    { "FUNC_5", 96 },
    { "FUNC_6", 97 },
    { "FUNC_7", 98 },
    { "FUNC_8", 99 },
    { "QUECHAR", 100 },

    // 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.