| 75 | } |
| 76 | |
| 77 | void Xbox360Peripheral::SendInit(UInt16 value, UInt16 index) |
| 78 | { |
| 79 | IOUSBDevRequest controlReq; |
| 80 | |
| 81 | controlReq.bmRequestType = USBmakebmRequestType(kUSBOut, kUSBVendor, kUSBDevice); |
| 82 | controlReq.bRequest = 0xa9; |
| 83 | controlReq.wValue = value; |
| 84 | controlReq.wIndex = index; |
| 85 | controlReq.wLength = 0; |
| 86 | controlReq.pData = NULL; |
| 87 | device->DeviceRequest(&controlReq, 100, 100, NULL); // Will fail - but device should still act on it |
| 88 | } |
| 89 | |
| 90 | bool Xbox360Peripheral::SendSwitch(bool sendOut) |
| 91 | { |
nothing calls this directly
no outgoing calls
no test coverage detected