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

Commit 58120357 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari
Browse files

Add new KEYCODE_RECENT_APPS and corresponding mappings

Test: manual
Bug: 261621522
Change-Id: I282eb4b2b29a4790e287371ac9408120ff32997d
parent fc55603a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -829,6 +829,8 @@ enum {
    AKEYCODE_STYLUS_BUTTON_TERTIARY = 310,
    /** A button on the tail end of a stylus. */
    AKEYCODE_STYLUS_BUTTON_TAIL = 311,
    /** Key to open recent apps (a.k.a. Overview) */
    AKEYCODE_RECENT_APPS = 312,

    // 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.
+2 −1
Original line number Diff line number Diff line
@@ -339,7 +339,8 @@ namespace android {
    DEFINE_KEYCODE(STYLUS_BUTTON_PRIMARY), \
    DEFINE_KEYCODE(STYLUS_BUTTON_SECONDARY), \
    DEFINE_KEYCODE(STYLUS_BUTTON_TERTIARY), \
    DEFINE_KEYCODE(STYLUS_BUTTON_TAIL)
    DEFINE_KEYCODE(STYLUS_BUTTON_TAIL), \
    DEFINE_KEYCODE(RECENT_APPS)

// NOTE: If you add a new axis here you must also add it to several other files.
//       Refer to frameworks/base/core/java/android/view/MotionEvent.java for the full list.