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 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;