Skip to content

Commit

Permalink
Merge pull request #558 from LumpBloom7/touch-notes-leniency
Browse files Browse the repository at this point in the history
Increase leniency of touch notes
  • Loading branch information
LumpBloom7 authored Feb 21, 2024
2 parents 94af41e + 65e5a19 commit dc1d6c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private void load()
if (DrawableSentakkiRuleset is not null)
AnimationDuration.BindTo(DrawableSentakkiRuleset?.AdjustedTouchAnimDuration);

Size = new Vector2(100);
Size = new Vector2(130);
Origin = Anchor.Centre;
Anchor = Anchor.Centre;
AddRangeInternal(new Drawable[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial class TouchHoldBody : CircularContainer
public readonly TouchHoldProgressPiece ProgressPiece;
private readonly TouchHoldCentrePiece centrePiece;

public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => centrePiece.ReceivePositionalInputAt(screenSpacePos);
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => ProgressPiece.ReceivePositionalInputAt(screenSpacePos);

public TouchHoldBody()
{
Expand Down
5 changes: 1 addition & 4 deletions osu.Game.Rulesets.Sentakki/UI/TouchPlayfield.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,14 @@ protected override void Update()

private void handlePointInput(int pointID, bool hasAction, Vector2? pointerPosition)
{
bool continueEventPropogation = true;

foreach (DrawableTouch touch in aliveTouchNotes)
{
if (hasAction && touch.ReceivePositionalInputAt(pointerPosition!.Value))
{
if (!touch.PointInteractionState[pointID])
{
touch.PointInteractionState[pointID] = true;
if (continueEventPropogation)
continueEventPropogation = !touch.OnNewPointInteraction();
touch.OnNewPointInteraction();
}
}
else
Expand Down

0 comments on commit dc1d6c2

Please sign in to comment.