From 86aea3a147af14ce2dd8c3b361a26f680e99f009 Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Sat, 22 Feb 2025 04:53:51 +0000 Subject: [PATCH] trigger confirmation in title-update.sml only when attack is newly pressed (not when attack is held) --- fcore/title/title-update.sml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fcore/title/title-update.sml b/fcore/title/title-update.sml index 6d04b96..23327db 100644 --- a/fcore/title/title-update.sml +++ b/fcore/title/title-update.sml @@ -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