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

Method SetLED

source/ControllerLib/Controllers/Dualshock3Controller.cpp:226–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226Result Dualshock3Controller::SetLED(Dualshock3LEDValue value)
227{
228 const uint8_t ledPacket[]{
229 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
230 static_cast<uint8_t>(value << 1),
231 LED_PERMANENT,
232 LED_PERMANENT,
233 LED_PERMANENT,
234 LED_PERMANENT};
235 return SendCommand(m_interface, Ds3FeatureUnknown1, ledPacket, sizeof(ledPacket));
236}
237
238void Dualshock3Controller::LoadConfig(const ControllerConfig *config)
239{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected