trigger confirmation in title-update.sml only when attack is newly pressed (not when attack is held)
This commit is contained in:
@@ -7,7 +7,7 @@ struct
|
|||||||
START_BUTTON =>
|
START_BUTTON =>
|
||||||
let
|
let
|
||||||
val mode =
|
val mode =
|
||||||
if #attackHeld input then
|
if CoreKey.containsAttack (userKeys, #newKeys input) then
|
||||||
GameType.LEVEL LevelType.initial
|
GameType.LEVEL LevelType.initial
|
||||||
else
|
else
|
||||||
let
|
let
|
||||||
@@ -23,7 +23,7 @@ struct
|
|||||||
| OPTIONS_BUTTON =>
|
| OPTIONS_BUTTON =>
|
||||||
let
|
let
|
||||||
val mode =
|
val mode =
|
||||||
if #attackHeld input then
|
if CoreKey.containsAttack (userKeys, #newKeys input) then
|
||||||
let val options = OptionsType.init userKeys
|
let val options = OptionsType.init userKeys
|
||||||
in GameType.OPTIONS options
|
in GameType.OPTIONS options
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user