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

Method newLocationIDNumber

360Controller/ChatPad.cpp:139–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139OSNumber* ChatPadKeyboardClass::newLocationIDNumber() const
140{
141 IOHIDDevice *device = GetParent(this);
142 if (device == NULL)
143 return NULL;
144 OSNumber *number = device->newLocationIDNumber();
145 if (number == NULL)
146 return NULL;
147 UInt32 value = number->unsigned32BitValue();
148 number->release();
149 return OSNumber::withNumber(value + 1, 32);
150}

Callers

nothing calls this directly

Calls 1

GetParentFunction · 0.85

Tested by

no test coverage detected