Skip to content

Commit

Permalink
Don't attempt to cast pressedActions
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Feb 21, 2024
1 parent e61f7f9 commit 65586c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Sentakki/SentakkiInputManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected override bool Handle(UIEvent e)
protected override void PropagateReleased(IEnumerable<Drawable> drawables, InputState state, SentakkiAction released)
{
int actionCount = 0;
var pressed = (List<SentakkiAction>)PressedActions;
var pressed = PressedActions;

for (int i = 0; i < pressed.Count; ++i)
{
Expand All @@ -61,7 +61,7 @@ protected override void PropagateReleased(IEnumerable<Drawable> drawables, Input
}
}

public SlimReadOnlyListWrapper<SentakkiAction> PressedActions => ((List<SentakkiAction>)KeyBindingContainer.PressedActions).AsSlimReadOnly();
public SlimReadOnlyListWrapper<SentakkiAction> PressedActions => KeyBindingContainer.PressedActions;

// For makeshift virtual input handling
public void TriggerPressed(SentakkiAction action) => KeyBindingContainer.TriggerPressed(action);
Expand Down

0 comments on commit 65586c0

Please sign in to comment.