Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset cecb1a97 in mainline


Ignore:
Timestamp:
2011-05-07T09:31:48Z (11 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master
Children:
d3b6d5e
Parents:
84b240f
Message:

Subdriver mapping for multimedia keys.

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/subdrivers.c

    r84b240f rcecb1a97  
    4242
    4343static usb_hid_subdriver_usage_t path_kbd[] = {
    44         {USB_HIDUT_PAGE_KEYBOARD, 0},
     44        {USB_HIDUT_PAGE_GENERIC_DESKTOP,
     45         USB_HIDUT_USAGE_GENERIC_DESKTOP_KEYBOARD},
    4546        {0, 0}
    4647};
     
    5152};
    5253
    53 static usb_hid_subdriver_usage_t lgtch_path[] = {
    54         {0xc, 0},
     54static usb_hid_subdriver_usage_t multim_key_path[] = {
     55        {USB_HIDUT_PAGE_CONSUMER, USB_HIDUT_USAGE_CONSUMER_CONSUMER_CONTROL},
    5556        {0, 0}
    5657};
     
    6061                path_kbd,
    6162                -1,
    62                 USB_HID_PATH_COMPARE_END
    63                 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
     63                USB_HID_PATH_COMPARE_ANYWHERE,
    6464                -1,
    6565                -1,
     
    7373        },
    7474        {
    75                 lgtch_path,
     75                multim_key_path,
    7676                1,
    77                 USB_HID_PATH_COMPARE_END
    78                 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
    79                 0x046d,
    80                 0xc30e,
     77                USB_HID_PATH_COMPARE_ANYWHERE,
     78                -1,
     79                -1,
    8180                {
    8281                        .init = usb_lgtch_init,
  • uspace/lib/usb/include/usb/classes/hidut.h

    r84b240f rcecb1a97  
    6767} usb_hidut_usage_generic_desktop_t;
    6868
     69typedef enum {
     70        USB_HIDUT_USAGE_CONSUMER_CONSUMER_CONTROL = 1
     71} usb_hidut_usage_consumer_t;
     72
    6973
    7074#endif
Note: See TracChangeset for help on using the changeset viewer.