Called by the userspace IORegistryEntrySetCFProperties function
| 947 | |
| 948 | // Called by the userspace IORegistryEntrySetCFProperties function |
| 949 | IOReturn 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 | |
| 966 | IOHIDDevice* Xbox360Peripheral::getController(int index) |
| 967 | { |
nothing calls this directly
no outgoing calls
no test coverage detected