From 3593d3ac0bc6d822ab69517114625fc9bcd59f14 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Mon, 31 Oct 2022 04:51:18 -0400 Subject: [PATCH] sticky null --- app/Rig/Rig.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Rig/Rig.cs b/app/Rig/Rig.cs index bef9913..12c3a8f 100644 --- a/app/Rig/Rig.cs +++ b/app/Rig/Rig.cs @@ -113,9 +113,9 @@ public class Con { public struct Btn { public bool frameDown, held, frameUp; - public void Step(bool down, bool sticky = false) { - if (held) { - down = sticky; + public void Step(bool down, bool? sticky = null) { + if (sticky != null && held) { + down = (bool)sticky; } frameDown = down && !held;