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

Method OnGridButton

Source/NoteTable.cpp:413–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413void NoteTable::OnGridButton(int x, int y, float velocity, IGridController* grid)
414{
415 int col = x + mGridControlOffsetX;
416 int row = y - mGridControlOffsetY;
417 if (grid == mGridControlTarget->GetGridController() && col >= 0 && col < mLength && velocity > 0)
418 {
419 mGrid->SetVal(col, row, mGrid->GetVal(col, row) > 0 ? 0 : 1);
420 UpdateGridControllerLights(false);
421 }
422}
423
424void NoteTable::ButtonClicked(ClickButton* button, double time)
425{

Callers 1

OnInputMethod · 0.45

Calls 3

GetGridControllerMethod · 0.80
SetValMethod · 0.80
GetValMethod · 0.80

Tested by

no test coverage detected