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

Method setProperties

360Controller/_60Controller.cpp:949–964  ·  view source on GitHub ↗

Called by the userspace IORegistryEntrySetCFProperties function

Source from the content-addressed store, hash-verified

947
948// Called by the userspace IORegistryEntrySetCFProperties function
949IOReturn Xbox360Peripheral::setProperties(OSObject *properties)
950{
951 OSDictionary *dictionary;
952
953 dictionary=OSDynamicCast(OSDictionary,properties);
954
955 if(dictionary!=NULL) {
956 dictionary->setObject(OSString::withCString("ControllerType"), OSNumber::withNumber(controllerType, 8));
957 setProperty(kDriverSettingKey,dictionary);
958 readSettings();
959
960 MakeSettingsChanges();
961
962 return kIOReturnSuccess;
963 } else return kIOReturnBadArgument;
964}
965
966IOHIDDevice* Xbox360Peripheral::getController(int index)
967{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected