thread time through update functions so it can be used

This commit is contained in:
2025-02-21 08:58:45 +00:00
parent 7ad521e444
commit c6fe819c0c
5 changed files with 9 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ struct
fun withFocus (newFocus, userKeys) =
{mode = GameType.OPTIONS {focus = newFocus}, userKeys = userKeys}
fun update (options, input: FrameInputType.t, userKeys) =
fun update (options, input: FrameInputType.t, userKeys, time) =
case #focus options of
LEFT_KEY =>
if #downHeld input then withFocus (RIGHT_KEY, userKeys)