MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / UpdateLights

Method UpdateLights

Source/LaunchpadKeyboard.cpp:621–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621void LaunchpadKeyboard::UpdateLights(bool force)
622{
623 if (mGridControlTarget->GetGridController())
624 {
625 for (int x = 0; x < mGridControlTarget->GetGridController()->NumCols(); ++x)
626 {
627 for (int y = 0; y < mGridControlTarget->GetGridController()->NumRows(); ++y)
628 {
629 GridColor color = GetGridSquareColor(x, y);
630 mGridControlTarget->GetGridController()->SetLight(x, y, color, force);
631 }
632 }
633 }
634}
635
636GridColor LaunchpadKeyboard::GetGridSquareColor(int x, int y)
637{

Callers

nothing calls this directly

Calls 4

GetGridControllerMethod · 0.80
NumColsMethod · 0.45
NumRowsMethod · 0.45
SetLightMethod · 0.45

Tested by

no test coverage detected