Changes in uspace/drv/usbhid/usbhid.c [054537b:f8e549b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/usbhid.c
r054537b rf8e549b 63 63 static const int USB_HID_MAX_SUBDRIVERS = 10; 64 64 65 static fibril_local bool report_received; 66 65 67 /*----------------------------------------------------------------------------*/ 66 68 … … 412 414 } 413 415 414 // TODO: remove the mouse hack 415 if (hid_dev->poll_pipe_index == USB_HID_MOUSE_POLL_EP_NO || 416 fallback) { 416 if (fallback) { 417 417 // fall back to boot protocol 418 418 switch (hid_dev->poll_pipe_index) { … … 509 509 free(input_old); 510 510 } 511 usb_hid_new_report(); 511 512 } 512 513 } … … 589 590 /*----------------------------------------------------------------------------*/ 590 591 592 void usb_hid_new_report(void) 593 { 594 report_received = false; 595 } 596 597 /*----------------------------------------------------------------------------*/ 598 599 void usb_hid_report_received(void) 600 { 601 report_received = true; 602 } 603 604 /*----------------------------------------------------------------------------*/ 605 606 bool usb_hid_report_ready(void) 607 { 608 return !report_received; 609 } 610 611 /*----------------------------------------------------------------------------*/ 612 591 613 void usb_hid_free(usb_hid_dev_t **hid_dev) 592 614 {
Note:
See TracChangeset
for help on using the changeset viewer.