MCPcopy Create free account
hub / github.com/360Controller/360Controller / receivedData

Method receivedData

WirelessGamingReceiver/WirelessHIDDevice.cpp:164–176  ·  view source on GitHub ↗

Handle new data from the device

Source from the content-addressed store, hash-verified

162
163// Handle new data from the device
164void WirelessHIDDevice::receivedData(void)
165{
166 IOMemoryDescriptor *data;
167 WirelessDevice *device = OSDynamicCast(WirelessDevice, getProvider());
168 if (device == NULL)
169 return;
170
171 while ((data = device->NextPacket()) != NULL)
172 {
173 receivedMessage(data);
174 data->release();
175 }
176}
177
178const char *HexData = "0123456789ABCDEF";
179

Callers 1

_receivedDataMethod · 0.80

Calls 1

NextPacketMethod · 0.80

Tested by

no test coverage detected