From bc4e396d1721884adc48f64fbe6ef40afd8ede2d Mon Sep 17 00:00:00 2001 From: Jinsuk Kim Date: Wed, 14 May 2014 15:36:48 +0900 Subject: [PATCH] New keycode definitions for HDMI-CEC Following keys are added to be mapped to HDMI-CEC standard keys: KEYCODE_MEDIA_TOP_MENU KEYCODE_11 KEYCODE_12 KEYCODE_LAST_CHANNEL KEYCODE_TV_DATA_SERVICE Change-Id: Ie73cf4cd8355ced4753eb5bba0ea130b087dfc36 --- include/android/keycodes.h | 5 +++++ include/input/InputEventLabels.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/include/android/keycodes.h b/include/android/keycodes.h index a2f01a4f8..da7302d22 100644 --- a/include/android/keycodes.h +++ b/include/android/keycodes.h @@ -269,6 +269,11 @@ enum { AKEYCODE_SLEEP = 223, AKEYCODE_WAKEUP = 224, AKEYCODE_PAIRING = 225, + AKEYCODE_MEDIA_TOP_MENU = 226, + AKEYCODE_11 = 227, + AKEYCODE_12 = 228, + AKEYCODE_LAST_CHANNEL = 229, + AKEYCODE_TV_DATA_SERVICE = 230 // 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 36be4fc9b..47b23cb88 100644 --- a/include/input/InputEventLabels.h +++ b/include/input/InputEventLabels.h @@ -265,6 +265,11 @@ static const InputEventLabel KEYCODES[] = { DEFINE_KEYCODE(SLEEP), DEFINE_KEYCODE(WAKEUP), DEFINE_KEYCODE(PAIRING), + DEFINE_KEYCODE(MEDIA_TOP_MENU), + DEFINE_KEYCODE(11), + DEFINE_KEYCODE(12), + DEFINE_KEYCODE(LAST_CHANNEL), + DEFINE_KEYCODE(TV_DATA_SERVICE), { NULL, 0 } };