MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / xinput_report_received_cb

Method xinput_report_received_cb

src/usbhostmanager.cpp:94–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void USBHostManager::xinput_report_received_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* report, uint16_t len) {
95 if ( listeners.size() == 0 ) return;
96 for( std::vector<USBListener*>::iterator it = listeners.begin(); it != listeners.end(); it++ ){
97 (*it)->report_received(dev_addr, instance, report, len);
98 }
99}
100
101void USBHostManager::xinput_report_sent_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* report, uint16_t len) {
102 if ( listeners.size() == 0 ) return;

Callers 1

Calls 2

beginMethod · 0.45
report_receivedMethod · 0.45

Tested by

no test coverage detected