Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd39b9ab authored by Josep del Rio's avatar Josep del Rio
Browse files

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
parent e183503e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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