GUI: fix some cases in where curNibble remains 1
This commit is contained in:
parent
45b6c19867
commit
b8538fa091
|
@ -273,6 +273,7 @@ void FurnaceGUI::drawEditControls() {
|
||||||
|
|
||||||
if (ImGui::Button(ICON_FA_PLAY "##Play")) {
|
if (ImGui::Button(ICON_FA_PLAY "##Play")) {
|
||||||
e->play();
|
e->play();
|
||||||
|
curNibble=false;
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Button(ICON_FA_STOP "##Stop")) {
|
if (ImGui::Button(ICON_FA_STOP "##Stop")) {
|
||||||
|
@ -2447,13 +2448,18 @@ void FurnaceGUI::keyDown(SDL_Event& ev) {
|
||||||
}
|
}
|
||||||
} else switch (ev.key.keysym.sym) {
|
} else switch (ev.key.keysym.sym) {
|
||||||
case SDLK_F5:
|
case SDLK_F5:
|
||||||
if (!e->isPlaying()) e->play();
|
if (!e->isPlaying()) {
|
||||||
|
e->play();
|
||||||
|
curNibble=false;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SDLK_F6:
|
case SDLK_F6:
|
||||||
e->play();
|
e->play();
|
||||||
|
curNibble=false;
|
||||||
break;
|
break;
|
||||||
case SDLK_F7:
|
case SDLK_F7:
|
||||||
e->play();
|
e->play();
|
||||||
|
curNibble=false;
|
||||||
break;
|
break;
|
||||||
case SDLK_F8:
|
case SDLK_F8:
|
||||||
e->stop();
|
e->stop();
|
||||||
|
@ -2463,6 +2469,7 @@ void FurnaceGUI::keyDown(SDL_Event& ev) {
|
||||||
e->stop();
|
e->stop();
|
||||||
} else {
|
} else {
|
||||||
e->play();
|
e->play();
|
||||||
|
curNibble=false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue