record and act on selected keys in options (except for save button and cancel button which are not acted upon)
This commit is contained in:
@@ -51,7 +51,11 @@ struct
|
||||
case GlfwKeyMap.codeFromKey key of
|
||||
SOME code =>
|
||||
let
|
||||
val () = #newKeys state := code :: !(#newKeys state)
|
||||
val () =
|
||||
if action = Input.PRESS then
|
||||
#newKeys state := code :: !(#newKeys state)
|
||||
else
|
||||
()
|
||||
val {left, right, down, up, attack, jump, escape} = !keyMappings
|
||||
val action = actionToBool action
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user