MCPcopy Create free account
hub / github.com/cathery/sys-con / Initialize

Method Initialize

source/ControllerLib/Controllers/Xbox360WirelessController.cpp:20–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20Result Xbox360WirelessController::Initialize()
21{
22 Result rc;
23 m_outputBuffer.clear();
24 m_outputBuffer.reserve(4);
25
26 rc = OpenInterfaces();
27 if (R_FAILED(rc))
28 return rc;
29
30 rc = WriteToEndpoint(reconnectPacket, sizeof(reconnectPacket));
31 if (R_FAILED(rc))
32 return rc;
33
34 SetLED(XBOX360LED_TOPLEFT);
35 return rc;
36}
37void Xbox360WirelessController::Exit()
38{
39 CloseInterfaces();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected