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

Method xinput_mount_cb

src/usbhostmanager.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void USBHostManager::xinput_mount_cb(uint8_t dev_addr, uint8_t instance, uint8_t controllerType, uint8_t subtype) {
81 if ( listeners.size() == 0 ) return;
82 for( std::vector<USBListener*>::iterator it = listeners.begin(); it != listeners.end(); it++ ){
83 (*it)->xmount(dev_addr, instance, controllerType, subtype);
84 }
85}
86
87void USBHostManager::xinput_umount_cb(uint8_t dev_addr) {
88 if ( listeners.size() == 0 ) return;

Callers 1

tuh_xinput_mount_cbFunction · 0.80

Calls 2

beginMethod · 0.45
xmountMethod · 0.45

Tested by

no test coverage detected