Skip to content

Commit

Permalink
Make KeyBindingContainer.IsPrioritised work for positional input too
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Aug 16, 2023
1 parent 6c05e7c commit abb75e2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions osu.Framework/Input/Bindings/KeyBindingContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@ internal override bool BuildNonPositionalInputQueue(List<Drawable> queue, bool a
return true;
}

internal override bool BuildPositionalInputQueue(Vector2 screenSpacePos, List<Drawable> queue)
{
if (!base.BuildPositionalInputQueue(screenSpacePos, queue))
return false;

if (Prioritised)
{
queue.Remove(this);
queue.Add(this);
}

return true;
}

/// <summary>
/// All input keys which are currently pressed and have reached this <see cref="KeyBindingContainer"/>.
/// </summary>
Expand Down

0 comments on commit abb75e2

Please sign in to comment.