From b22e51a3722826371c55c56e807d25ec9a86b0b8 Mon Sep 17 00:00:00 2001 From: Philip Junker Date: Mon, 7 Mar 2022 11:44:25 +0100 Subject: [PATCH] Add support for more keycodes to reference remote control. Add support for KEYCODE_PROFILE_SWITCH, KEYCODE_ALL_APPS, KEYCODE_PERIOD and KEYCODE_MEDIA_RECORD. Add support for KEYCODE_PROFILE_SWITCH and KEYCODE_ALL_APPS in Generic.kl. Bug: 223113454 Test: atest GoogleAtvReferenceRemoteControlTest Change-Id: Ife171662224e520dea249ce03675c278adf67870 --- data/keyboards/Generic.kl | 2 ++ data/keyboards/Vendor_0957_Product_0001.kl | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/data/keyboards/Generic.kl b/data/keyboards/Generic.kl index bd0e56a39e03..c81473ddcfc6 100644 --- a/data/keyboards/Generic.kl +++ b/data/keyboards/Generic.kl @@ -416,6 +416,8 @@ key usage 0x0c0067 WINDOW key usage 0x0c006F BRIGHTNESS_UP key usage 0x0c0070 BRIGHTNESS_DOWN key usage 0x0c0173 MEDIA_AUDIO_TRACK +key usage 0x0c019C PROFILE_SWITCH +key usage 0x0c01A2 ALL_APPS # Joystick and game controller axes. # Axes that are not mapped will be assigned generic axis numbers by the input subsystem. diff --git a/data/keyboards/Vendor_0957_Product_0001.kl b/data/keyboards/Vendor_0957_Product_0001.kl index 672abef3c963..13b4096ca82a 100644 --- a/data/keyboards/Vendor_0957_Product_0001.kl +++ b/data/keyboards/Vendor_0957_Product_0001.kl @@ -44,6 +44,8 @@ key 10 9 key 11 0 # custom keys +key usage 0x000c019C PROFILE_SWITCH +key usage 0x000c01A2 ALL_APPS key usage 0x000c01BB TV_INPUT key usage 0x000c022A BOOKMARK key usage 0x000c0096 SETTINGS @@ -53,6 +55,7 @@ key usage 0x000c0089 TV key usage 0x000c009C CHANNEL_UP key usage 0x000c009D CHANNEL_DOWN key usage 0x000c00CD MEDIA_PLAY_PAUSE +key usage 0x000c00B2 MEDIA_RECORD key usage 0x000c00B4 MEDIA_SKIP_BACKWARD key usage 0x000c00B3 MEDIA_SKIP_FORWARD key usage 0x000c0226 MEDIA_STOP @@ -62,6 +65,7 @@ key usage 0x000c0078 BUTTON_4 WAKE #Netflix key usage 0x000c0079 BUTTON_6 WAKE #Disney+ key usage 0x000c007A BUTTON_7 WAKE #HBOmax +key usage 0x00070037 PERIOD key usage 0x000c01BD INFO key usage 0x000c0061 CAPTIONS key usage 0x000c0185 TV_TELETEXT