begin coding functionality for remapping keys
This commit is contained in:
@@ -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
|
||||
()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user