GUI: even more piano work

- don't allow piano window to be moved if clicking on piano
- only treat left click as a touch point
This commit is contained in:
tildearrow 2022-05-18 00:23:13 -05:00
parent cfa05143ab
commit 255fc4cc25
2 changed files with 3 additions and 0 deletions

View file

@ -209,6 +209,7 @@ void FurnaceGUI::drawPiano() {
// render piano
//ImGui::ItemSize(size,ImGui::GetStyle().FramePadding.y);
if (ImGui::ItemAdd(rect,ImGui::GetID("pianoDisplay"))) {
ImGui::ItemHoverable(rect,ImGui::GetID("pianoDisplay"));
if (view) {
int notes=oct*12;
// evaluate input