Changes in uspace/drv/usbhid/lgtch-ultrax/lgtch-ultrax.c [e3b5129:f240d30] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/lgtch-ultrax/lgtch-ultrax.c
re3b5129 rf240d30 81 81 usb_hid_report_path_t *path = usb_hid_report_path(); 82 82 usb_hid_report_path_append_item(path, 0xc, 0); 83 usb_hid_report_path_set_report_id(path, 1); 83 84 uint8_t report_id; 84 85 85 int rc = usb_hid_parse_report(hid_dev->parser, buffer, 86 buffer_size, path, 87 USB_HID_PATH_COMPARE_END | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 88 &usb_lgtch_parser_callbacks, hid_dev); 86 int rc = usb_hid_parse_report(hid_dev->report, buffer, buffer_size, 87 &report_id); 88 usb_hid_report_path_set_report_id(path, report_id); 89 90 usb_hid_report_field_t *field = usb_hid_report_get_sibling( 91 hid_dev->report, NULL, path, USB_HID_PATH_COMPARE_END , 92 USB_HID_REPORT_TYPE_INPUT); 93 94 while (field != NULL) { 95 usb_log_debug(NAME " KEY VALUE(%X) USAGE(%X)\n", field->value, 96 field->usage); 97 } 98 89 99 90 100 usb_hid_report_path_free(path); 91 101 92 102 if (rc != EOK) { 93 usb_log_warning( "Error in usb_hid_boot_keyboard_input_report():"103 usb_log_warning(NAME "Error in usb_hid_boot_keyboard_input_report():" 94 104 "%s\n", str_error(rc)); 95 105 }
Note:
See TracChangeset
for help on using the changeset viewer.