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

Method GetInput

source/ControllerLib/Controllers/Xbox360Controller.cpp:99–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99Result Xbox360Controller::GetInput()
100{
101 uint8_t input_bytes[64];
102
103 Result rc = m_inPipe->Read(input_bytes, sizeof(input_bytes));
104
105 uint8_t type = input_bytes[0];
106
107 if (type == XBOX360INPUT_BUTTON) //Button data
108 {
109 m_buttonData = *reinterpret_cast<Xbox360ButtonData *>(input_bytes);
110 }
111
112 return rc;
113}
114
115Result Xbox360Controller::SendInitBytes()
116{

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.80

Tested by

no test coverage detected