allow cycling in options menu (when pressing down while on bottom button, it goes back to the top button, and whenh pressing up on the top button, it goes to the bottom button)

This commit is contained in:
2025-02-22 05:07:20 +00:00
parent 86aea3a147
commit e9f52d5cda

View File

@@ -283,6 +283,8 @@ struct
UpdateLeftKey.onSelected (options, input, userKeys, time)
else if CoreKey.containsAttack (userKeys, #newKeys input) then
select (options, userKeys)
else if #upHeld input then
moveFocusUp (options, CANCEL_BUTTON, userKeys, time)
else if #downHeld input then
moveFocusDown (options, RIGHT_KEY, userKeys, time)
else
@@ -356,6 +358,8 @@ struct
select (options, userKeys)
else if #upHeld input then
moveFocusUp (options, SAVE_BUTTON, userKeys, time)
else if #downHeld input then
moveFocusDown (options, LEFT_KEY, userKeys, time)
else
default (options, userKeys)
end