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

Function GetParent

360Controller/ChatPad.cpp:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static IOHIDDevice* GetParent(const IOService *current)
107{
108 Xbox360Peripheral *owner;
109
110 owner = OSDynamicCast(Xbox360Peripheral, current->getProvider());
111 if (owner == NULL)
112 return NULL;
113 return owner->getController(0);
114}
115
116bool ChatPadKeyboardClass::start(IOService *provider)
117{

Callers 3

newManufacturerStringMethod · 0.85
newSerialNumberStringMethod · 0.85
newLocationIDNumberMethod · 0.85

Calls 1

getControllerMethod · 0.80

Tested by

no test coverage detected