[PATCH 3/6] Add more key definitions

Dmitry Torokhov dtor at chromium.org
Wed Sep 27 17:58:28 UTC 2017


Add more key definitions that were added to newer kernels, but were
missing in evtest.

Signed-off-by: Dmitry Torokhov <dtor at chromium.org>
---
 evtest.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/evtest.c b/evtest.c
index 790f9c9..0f23959 100644
--- a/evtest.c
+++ b/evtest.c
@@ -428,6 +428,9 @@ static const char * const keys[KEY_MAX + 1] = {
 	NAME_ELEMENT(KEY_NUMERIC_6),		NAME_ELEMENT(KEY_NUMERIC_7),
 	NAME_ELEMENT(KEY_NUMERIC_8),		NAME_ELEMENT(KEY_NUMERIC_9),
 	NAME_ELEMENT(KEY_NUMERIC_STAR),		NAME_ELEMENT(KEY_NUMERIC_POUND),
+#endif
+#ifdef KEY_NUMERIC_11
+	NAME_ELEMENT(KEY_NUMERIC_11),		NAME_ELEMENT(KEY_NUMERIC_12),
 #endif
 	NAME_ELEMENT(KEY_BATTERY),
 	NAME_ELEMENT(KEY_BLUETOOTH),		NAME_ELEMENT(KEY_BRIGHTNESS_CYCLE),
@@ -583,6 +586,34 @@ static const char * const keys[KEY_MAX + 1] = {
 #ifdef KEY_KBDINPUTASSIST_CANCEL
 	NAME_ELEMENT(KEY_KBDINPUTASSIST_CANCEL),
 #endif
+
+#ifdef KEY_RIGHT_UP
+	NAME_ELEMENT(KEY_RIGHT_UP),		NAME_ELEMENT(KEY_RIGHT_DOWN),
+	NAME_ELEMENT(KEY_LEFT_UP),		NAME_ELEMENT(KEY_LEFT_DOWN),
+#endif
+
+#ifdef KEY_ROOT_MENU
+	NAME_ELEMENT(KEY_ROOT_MENU),
+	NAME_ELEMENT(KEY_MEDIA_TOP_MENU),
+	NAME_ELEMENT(KEY_AUDIO_DESC),
+	NAME_ELEMENT(KEY_3D_MODE),
+	NAME_ELEMENT(KEY_NEXT_FAVORITE),
+	NAME_ELEMENT(KEY_STOP_RECORD),
+	NAME_ELEMENT(KEY_PAUSE_RECORD),
+	NAME_ELEMENT(KEY_VOD),
+	NAME_ELEMENT(KEY_UNMUTE),
+	NAME_ELEMENT(KEY_FASTREVERSE),
+	NAME_ELEMENT(KEY_SLOWREVERSE),
+#endif
+
+#ifdef KEY_DATA
+	NAME_ELEMENT(KEY_DATA),
+#endif
+
+#ifdef KEY_ONSCREEN_KEYBOARD
+	NAME_ELEMENT(KEY_ONSCREEN_KEYBOARD),
+#endif
+
 #ifdef BTN_TRIGGER_HAPPY
 	NAME_ELEMENT(BTN_TRIGGER_HAPPY1),	NAME_ELEMENT(BTN_TRIGGER_HAPPY11),
 	NAME_ELEMENT(BTN_TRIGGER_HAPPY2),	NAME_ELEMENT(BTN_TRIGGER_HAPPY12),
-- 
2.14.2.822.g60be5d43e6-goog



More information about the Input-tools mailing list