Returns the HID descriptor for this device
| 71 | |
| 72 | // Returns the HID descriptor for this device |
| 73 | IOReturn Xbox360ControllerClass::newReportDescriptor(IOMemoryDescriptor **descriptor) const |
| 74 | { |
| 75 | IOBufferMemoryDescriptor *buffer = IOBufferMemoryDescriptor::inTaskWithOptions(kernel_task,0,sizeof(HID_360::ReportDescriptor)); |
| 76 | |
| 77 | if (buffer == NULL) return kIOReturnNoResources; |
| 78 | buffer->writeBytes(0,HID_360::ReportDescriptor,sizeof(HID_360::ReportDescriptor)); |
| 79 | *descriptor=buffer; |
| 80 | return kIOReturnSuccess; |
| 81 | } |
| 82 | |
| 83 | // Handles a message from the userspace IOHIDDeviceInterface122::setReport function |
| 84 | IOReturn Xbox360ControllerClass::setReport(IOMemoryDescriptor *report,IOHIDReportType reportType,IOOptionBits options) |
nothing calls this directly
no outgoing calls
no test coverage detected