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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user