sticky null

This commit is contained in:
spatialfree 2022-10-31 04:51:18 -04:00
parent 901c86eddd
commit 3593d3ac0b

View file

@ -113,9 +113,9 @@ public class Con {
public struct Btn { public struct Btn {
public bool frameDown, held, frameUp; public bool frameDown, held, frameUp;
public void Step(bool down, bool sticky = false) { public void Step(bool down, bool? sticky = null) {
if (held) { if (sticky != null && held) {
down = sticky; down = (bool)sticky;
} }
frameDown = down && !held; frameDown = down && !held;