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

Method GetInput

source/ControllerLib/Controllers/XboxController.cpp:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98Result XboxController::GetInput()
99{
100 uint8_t input_bytes[64];
101
102 Result rc = m_inPipe->Read(input_bytes, sizeof(input_bytes));
103
104 if (R_SUCCEEDED(rc))
105 {
106 m_buttonData = *reinterpret_cast<XboxButtonData *>(input_bytes);
107 }
108
109 return rc;
110}
111
112float XboxController::NormalizeTrigger(uint8_t deadzonePercent, uint8_t value)
113{

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.80

Tested by

no test coverage detected