Changes in uspace/drv/usbhid/kbd/kbddev.c [a6610d4:60c0573] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbd/kbddev.c
ra6610d4 r60c0573 176 176 177 177 /*----------------------------------------------------------------------------*/ 178 179 static void usb_kbd_process_keycodes(const uint8_t *key_codes, size_t count,180 uint8_t report_id, void *arg);181 182 static const usb_hid_report_in_callbacks_t usb_kbd_parser_callbacks = {183 .keyboard = usb_kbd_process_keycodes184 };185 186 /*----------------------------------------------------------------------------*/187 178 /* Keyboard layouts */ 188 179 /*----------------------------------------------------------------------------*/ … … 639 630 { 640 631 assert(hid_dev->parser != NULL); 632 633 usb_hid_report_in_callbacks_t *callbacks = 634 (usb_hid_report_in_callbacks_t *)malloc( 635 sizeof(usb_hid_report_in_callbacks_t)); 636 637 callbacks->keyboard = usb_kbd_process_keycodes; 641 638 642 639 usb_log_debug("Calling usb_hid_parse_report() with " … … 647 644 usb_hid_report_path_t *path = usb_hid_report_path(); 648 645 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 649 //usb_hid_report_path_set_report_id(path, 0);646 usb_hid_report_path_set_report_id(path, 0); 650 647 651 648 int rc = usb_hid_parse_report(hid_dev->parser, buffer, 652 649 actual_size, path, 653 650 USB_HID_PATH_COMPARE_END | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 654 &usb_kbd_parser_callbacks, hid_dev);651 callbacks, hid_dev); 655 652 656 653 usb_hid_report_path_free(path);
Note:
See TracChangeset
for help on using the changeset viewer.