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

Method SendInit

360Controller/_60Controller.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void 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
90bool Xbox360Peripheral::SendSwitch(bool sendOut)
91{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected