diff options
| author | David Stevens <stevensd@google.com> | 2015-07-31 11:00:50 -0700 |
|---|---|---|
| committer | David Stevens <stevensd@google.com> | 2015-07-31 11:05:19 -0700 |
| commit | a487f0cbe22f35959fa2ff3e7cb97bf9e221e538 (patch) | |
| tree | c249480d45990ddb261c47fbe5b77cb56f445bb9 /core/java/android | |
| parent | fb6744d6a79b5033ac3501922f2a26ddf6221919 (diff) | |
Add keycodes for diagonal dpad inputs
Change-Id: I1a5d103757a86bd9ee51738e9471f09fb0e78c39
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/KeyEvent.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java index 75e6229fdd99..e77daa6218b4 100644 --- a/core/java/android/view/KeyEvent.java +++ b/core/java/android/view/KeyEvent.java @@ -770,8 +770,16 @@ public class KeyEvent extends InputEvent implements Parcelable { public static final int KEYCODE_STEM_2 = 266; /** Key code constant: Generic stem key 3 for Wear */ public static final int KEYCODE_STEM_3 = 267; - - private static final int LAST_KEYCODE = KEYCODE_STEM_3; + /** Key code constant: Directional Pad Up-Left */ + public static final int KEYCODE_DPAD_UP_LEFT = 268; + /** Key code constant: Directional Pad Down-Left */ + public static final int KEYCODE_DPAD_DOWN_LEFT = 269; + /** Key code constant: Directional Pad Up-Right */ + public static final int KEYCODE_DPAD_UP_RIGHT = 270; + /** Key code constant: Directional Pad Down-Right */ + public static final int KEYCODE_DPAD_DOWN_RIGHT = 271; + + private static final int LAST_KEYCODE = KEYCODE_DPAD_DOWN_RIGHT; // NOTE: If you add a new keycode here you must also add it to: // isSystem() |
