| 61 | } |
| 62 | |
| 63 | void Xbox360Peripheral::SendSpecial(UInt16 value) |
| 64 | { |
| 65 | IOUSBDevRequest controlReq; |
| 66 | |
| 67 | controlReq.bmRequestType = USBmakebmRequestType(kUSBOut, kUSBVendor, kUSBInterface); |
| 68 | controlReq.bRequest = 0x00; |
| 69 | controlReq.wValue = value; |
| 70 | controlReq.wIndex = 0x0002; |
| 71 | controlReq.wLength = 0; |
| 72 | controlReq.pData = NULL; |
| 73 | if (device->DeviceRequest(&controlReq, 100, 100, NULL) != kIOReturnSuccess) |
| 74 | IOLog("Failed to send special message %.4x\n", value); |
| 75 | } |
| 76 | |
| 77 | void Xbox360Peripheral::SendInit(UInt16 value, UInt16 index) |
| 78 | { |
nothing calls this directly
no outgoing calls
no test coverage detected