trigger confirmation in title-update.sml only when attack is newly pressed (not when attack is held)

This commit is contained in:
2025-02-22 04:53:51 +00:00
parent 1bab4d89d7
commit 86aea3a147

View File

@@ -7,7 +7,7 @@ struct
START_BUTTON =>
let
val mode =
if #attackHeld input then
if CoreKey.containsAttack (userKeys, #newKeys input) then
GameType.LEVEL LevelType.initial
else
let
@@ -23,7 +23,7 @@ struct
| OPTIONS_BUTTON =>
let
val mode =
if #attackHeld input then
if CoreKey.containsAttack (userKeys, #newKeys input) then
let val options = OptionsType.init userKeys
in GameType.OPTIONS options
end