From 87cd0dc425201d56f1b07fa710d4f44fff4131bc Mon Sep 17 00:00:00 2001 From: Tim Kilbourn Date: Mon, 14 Apr 2014 15:37:51 -0700 Subject: Add KEYCODE_PAIRING. Used for initiating a peripheral pairing mode. Change-Id: I8e172bdda1f3c34eff36f3001c174f7a6b6e6e41 --- core/java/android/view/KeyEvent.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/java/android/view/KeyEvent.java') diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java index 852fce5829f2..b8e1b899aec2 100644 --- a/core/java/android/view/KeyEvent.java +++ b/core/java/android/view/KeyEvent.java @@ -639,8 +639,13 @@ public class KeyEvent extends InputEvent implements Parcelable { * Wakes up the device. Behaves somewhat like {@link #KEYCODE_POWER} but it * has no effect if the device is already awake. */ public static final int KEYCODE_WAKEUP = 224; + /** Key code constant: Pairing key. + * Initiates peripheral pairing mode. Useful for pairing remote control + * devices or game controllers, especially if no other input mode is + * available. */ + public static final int KEYCODE_PAIRING = 225; - private static final int LAST_KEYCODE = KEYCODE_WAKEUP; + private static final int LAST_KEYCODE = KEYCODE_PAIRING; // NOTE: If you add a new keycode here you must also add it to: // isSystem() -- cgit v1.2.3