| 619 | } |
| 620 | |
| 621 | void 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 | |
| 636 | GridColor LaunchpadKeyboard::GetGridSquareColor(int x, int y) |
| 637 | { |
nothing calls this directly
no test coverage detected