Ignore:
File:
1 edited

Legend:

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

    r252cf2a r1989cdf  
    180180 * @param key Key code of the key according to HID Usage Tables.
    181181 */
    182 /*
    183182static void usb_lgtch_push_ev(usb_hid_dev_t *hid_dev, int type,
    184183    unsigned int key)
     
    207206            ev.mods, ev.c);
    208207}
    209 */
     208
    210209/*----------------------------------------------------------------------------*/
    211210
     
    397396
    398397        usb_hid_report_field_t *field = usb_hid_report_get_sibling(
    399             hid_dev->report, NULL, path, USB_HID_PATH_COMPARE_BEGIN
     398            hid_dev->report, NULL, path, USB_HID_PATH_COMPARE_END
    400399            | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
    401400            USB_HID_REPORT_TYPE_INPUT);
    402401       
    403 //      unsigned int key;
     402        unsigned int key;
    404403       
    405404        /*! @todo Is this iterating OK if done multiple times?
     
    407406         */
    408407        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 = usb_lgtch_map_usage(field->usage);
    413 //              usb_lgtch_push_ev(hid_dev, KEY_PRESS, key);
     411
     412                key = field->usage;
     413                //key = usb_lgtch_map_usage(field->usage);
     414                usb_lgtch_push_ev(hid_dev, KEY_PRESS, key);
    414415               
    415416                field = usb_hid_report_get_sibling(
    416                     hid_dev->report, field, path, USB_HID_PATH_COMPARE_BEGIN
     417                    hid_dev->report, field, path, USB_HID_PATH_COMPARE_END
    417418                    | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
    418419                    USB_HID_REPORT_TYPE_INPUT);
Note: See TracChangeset for help on using the changeset viewer.