Add support for B-button in active-mode-screen

This commit is contained in:
Maschell 2024-08-04 17:56:10 +02:00
parent 8be76541cd
commit 4fc393f37a

View File

@ -119,6 +119,11 @@ ConfigSubState ConfigRenderer::UpdateStateMain(const Input &input) {
return SUB_STATE_RUNNING;
}
} else if (input.data.buttons_d & (Input::eButtons::BUTTON_B | Input::eButtons::BUTTON_HOME)) {
if (mSetActivePluginsMode) {
mNeedRedraw = true;
mSetActivePluginsMode = false;
return SUB_STATE_RUNNING;
} else {
mNeedRedraw = true;
mCategoryRenderer.reset();
for (const auto &element : configs) {
@ -126,6 +131,7 @@ ConfigSubState ConfigRenderer::UpdateStateMain(const Input &input) {
}
return SUB_STATE_RETURN;
}
}
if (mCursorPos < 0) {
mCursorPos = (int32_t) totalElementSize - 1;