Changeset cecb1a97 in mainline for uspace/drv/usbhid/subdrivers.c


Ignore:
Timestamp:
2011-05-07T09:31:48Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d3b6d5e
Parents:
84b240f
Message:

Subdriver mapping for multimedia keys.

File:
1 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,
Note: See TracChangeset for help on using the changeset viewer.