begin coding functionality for remapping keys

This commit is contained in:
2025-02-16 12:45:29 +00:00
parent 0edeb65131
commit 47bda26da5
6 changed files with 294 additions and 10 deletions

View File

@@ -7,7 +7,6 @@ struct
, upHeld = ref false
, downHeld = ref false
, attackHeld = ref false
, chargeHeld = ref false
, width = ref (1920.0 : Real32.real)
, height = ref (1080.0 : Real32.real)
}
@@ -18,7 +17,6 @@ struct
, upHeld = !(#upHeld state)
, downHeld = !(#downHeld state)
, attackHeld = !(#attackHeld state)
, chargeHeld = !(#chargeHeld state)
}
fun getWidth () =
@@ -53,10 +51,6 @@ struct
if action = PRESS then (#attackHeld state) := true
else if action = RELEASE then (#attackHeld state) := false
else ()
else if key = KEY_L then
if action = PRESS then (#chargeHeld state) := true
else if action = RELEASE then (#chargeHeld state) := false
else ()
else
()