From e9f52d5cda1eb90e9249583471e7dbc1f6011579 Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Sat, 22 Feb 2025 05:07:20 +0000 Subject: [PATCH] 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) --- fcore/options/options-update.sml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fcore/options/options-update.sml b/fcore/options/options-update.sml index 3f76380..439a837 100644 --- a/fcore/options/options-update.sml +++ b/fcore/options/options-update.sml @@ -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