Skip to content

Commit

Permalink
Fix tick notes not being hit if the key is pressed down and it spawns
Browse files Browse the repository at this point in the history
  • Loading branch information
flustix committed Mar 23, 2024
1 parent c3327b6 commit 5255370
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,13 @@ private DrawableHitObject createHitObject(HitObject hitObject)
var drawable = getDrawableFor(hitObject);
drawable.Keybind = screen.Input.Keys[hitObject.Lane - 1];
drawable.OnHit += hit;

for (var i = 0; i < screen.Input.Pressed.Length; i++)
{
var bind = screen.Input.Keys[i];
drawable.OnPressed(bind);
}

return drawable;
}

Expand Down

0 comments on commit 5255370

Please sign in to comment.