MCPcopy Create free account
hub / github.com/acidanthera/VoodooInput / getOSIntValue

Method getOSIntValue

VoodooInput/Trackpoint/TrackpointDevice.cpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void TrackpointDevice::getOSIntValue(OSDictionary *dict, int *val, const char *key) {
49 OSNumber *osnum = OSDynamicCast(OSNumber, dict->getObject(key));
50 if (osnum != nullptr) *val = osnum->unsigned32BitValue();
51}
52
53void TrackpointDevice::getOSShortValue(OSDictionary *dict, short *val, const char *key) {
54 OSNumber *osnum = OSDynamicCast(OSNumber, dict->getObject(key));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected