Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/lgtch-ultrax/lgtch-ultrax.c

    r1989cdf r252cf2a  
    180180 * @param key Key code of the key according to HID Usage Tables.
    181181 */
     182/*
    182183static void usb_lgtch_push_ev(usb_hid_dev_t *hid_dev, int type,
    183184    unsigned int key)
     
    206207            ev.mods, ev.c);
    207208}
    208 
     209*/
    209210/*----------------------------------------------------------------------------*/
    210211
     
    396397
    397398        usb_hid_report_field_t *field = usb_hid_report_get_sibling(
    398             hid_dev->report, NULL, path, USB_HID_PATH_COMPARE_END
     399            hid_dev->report, NULL, path, USB_HID_PATH_COMPARE_BEGIN
    399400            | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
    400401            USB_HID_REPORT_TYPE_INPUT);
    401402       
    402         unsigned int key;
     403//      unsigned int key;
    403404       
    404405        /*! @todo Is this iterating OK if done multiple times?
     
    406407         */
    407408        while (field != NULL) {
    408                 usb_log_debug("\n");
    409409                usb_log_debug(NAME " KEY VALUE(%X) USAGE(%X)\n", field->value,
    410410                    field->usage);
    411 
    412                 key = field->usage;
    413                 //key = usb_lgtch_map_usage(field->usage);
    414                 usb_lgtch_push_ev(hid_dev, KEY_PRESS, key);
     411               
     412//              key = usb_lgtch_map_usage(field->usage);
     413//              usb_lgtch_push_ev(hid_dev, KEY_PRESS, key);
    415414               
    416415                field = usb_hid_report_get_sibling(
    417                     hid_dev->report, field, path, USB_HID_PATH_COMPARE_END
     416                    hid_dev->report, field, path, USB_HID_PATH_COMPARE_BEGIN
    418417                    | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
    419418                    USB_HID_REPORT_TYPE_INPUT);
Note: See TracChangeset for help on using the changeset viewer.