summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Josep del Rio <joseprio@google.com> 2024-05-15 11:44:49 +0000
committer Josep del Rio <joseprio@google.com> 2024-05-15 17:30:31 +0000
commitfd39b9abda05546fac3ee26ca765bce0b0e5a36d (patch)
tree83abcd7cf568e220ef70956910d2b3385c32d022
parente183503eac3b34077a5772d1ea7add2722b06353 (diff)
Add missing consumer HID usages
Some popular keyboards have keys that use standard HID usages (as defined in https://usb.org/sites/default/files/hut1_3.pdf) that are currently not defined in Android. This change adds the ones that have been identified so far. Bug: 287638533 Bug: 287642278 Bug: 287642922 Bug: 287640783 Test: Confirmed that the language switch, settings, emoji picker, recent apps, refresh and all apps are now properly recognized by testing on a Logitech K650 keyboard in ChromeOS mode (Fn+C for 3 seconds). Flag: EXEMPT resource only update Change-Id: Icfa5be11b33059c44bc4cb5d838b503d23f90464 Change-Id: If71c545f1a73a86ceb40ef94bf0ae272b672b144
-rw-r--r--data/keyboards/Generic.kl6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/keyboards/Generic.kl b/data/keyboards/Generic.kl
index e8b4104a33bb..f8d3bffbe00b 100644
--- a/data/keyboards/Generic.kl
+++ b/data/keyboards/Generic.kl
@@ -438,9 +438,15 @@ key usage 0x0c0070 BRIGHTNESS_DOWN FALLBACK_USAGE_MAPPING
key usage 0x0c0079 KEYBOARD_BACKLIGHT_UP FALLBACK_USAGE_MAPPING
key usage 0x0c007A KEYBOARD_BACKLIGHT_DOWN FALLBACK_USAGE_MAPPING
key usage 0x0c007C KEYBOARD_BACKLIGHT_TOGGLE FALLBACK_USAGE_MAPPING
+key usage 0x0c00D9 EMOJI_PICKER FALLBACK_USAGE_MAPPING
key usage 0x0c0173 MEDIA_AUDIO_TRACK FALLBACK_USAGE_MAPPING
key usage 0x0c019C PROFILE_SWITCH FALLBACK_USAGE_MAPPING
+key usage 0x0c019F SETTINGS FALLBACK_USAGE_MAPPING
key usage 0x0c01A2 ALL_APPS FALLBACK_USAGE_MAPPING
+key usage 0x0c0227 REFRESH FALLBACK_USAGE_MAPPING
+key usage 0x0c029D LANGUAGE_SWITCH FALLBACK_USAGE_MAPPING
+key usage 0x0c029F RECENT_APPS FALLBACK_USAGE_MAPPING
+key usage 0x0c02A2 ALL_APPS FALLBACK_USAGE_MAPPING
key usage 0x0d0044 STYLUS_BUTTON_PRIMARY FALLBACK_USAGE_MAPPING
key usage 0x0d005a STYLUS_BUTTON_SECONDARY FALLBACK_USAGE_MAPPING