From 6b4e02f1cbdc55126cae9d2ce588640a784e7d61 Mon Sep 17 00:00:00 2001 From: Tim Kilbourn Date: Mon, 14 Apr 2014 15:37:20 -0700 Subject: [PATCH] Add KEYCODE_PAIRING. Used for initiating a peripheral pairing mode. Change-Id: I7e8439d27491ccc72d045cabf5751a35b9113aa7 --- include/android/keycodes.h | 1 + include/input/InputEventLabels.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/android/keycodes.h b/include/android/keycodes.h index b6a5f4cee..a2f01a4f8 100644 --- a/include/android/keycodes.h +++ b/include/android/keycodes.h @@ -268,6 +268,7 @@ enum { AKEYCODE_MEDIA_AUDIO_TRACK = 222, AKEYCODE_SLEEP = 223, AKEYCODE_WAKEUP = 224, + AKEYCODE_PAIRING = 225, // 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. diff --git a/include/input/InputEventLabels.h b/include/input/InputEventLabels.h index c6eef9bec..36be4fc9b 100644 --- a/include/input/InputEventLabels.h +++ b/include/input/InputEventLabels.h @@ -264,6 +264,7 @@ static const InputEventLabel KEYCODES[] = { DEFINE_KEYCODE(MEDIA_AUDIO_TRACK), DEFINE_KEYCODE(SLEEP), DEFINE_KEYCODE(WAKEUP), + DEFINE_KEYCODE(PAIRING), { NULL, 0 } };