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

Method SendSpecial

360Controller/_60Controller.cpp:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void 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
77void Xbox360Peripheral::SendInit(UInt16 value, UInt16 index)
78{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected