mirror of
https://github.com/ppy/osu
synced 2025-03-23 03:16:53 +00:00
Fix gameplay mouse button disable setting no longer having any effect
Regressed at 50091252e2 (diff-20562da8cde558aacafa9540b97b7975)
This commit is contained in:
parent
62a51a9ff1
commit
593dee202c
@ -73,12 +73,10 @@ namespace osu.Game.Rulesets.UI
|
|||||||
#region IHasReplayHandler
|
#region IHasReplayHandler
|
||||||
|
|
||||||
private ReplayInputHandler replayInputHandler;
|
private ReplayInputHandler replayInputHandler;
|
||||||
|
|
||||||
public ReplayInputHandler ReplayInputHandler
|
public ReplayInputHandler ReplayInputHandler
|
||||||
{
|
{
|
||||||
get
|
get => replayInputHandler;
|
||||||
{
|
|
||||||
return replayInputHandler;
|
|
||||||
}
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (replayInputHandler != null) RemoveHandler(replayInputHandler);
|
if (replayInputHandler != null) RemoveHandler(replayInputHandler);
|
||||||
@ -220,6 +218,13 @@ namespace osu.Game.Rulesets.UI
|
|||||||
return base.OnMouseUp(e);
|
return base.OnMouseUp(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override bool Handle(UIEvent e)
|
||||||
|
{
|
||||||
|
if (mouseDisabled.Value && e is MouseDownEvent me && (me.Button == MouseButton.Left || me.Button == MouseButton.Right)) return false;
|
||||||
|
|
||||||
|
return base.Handle(e);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Key Counter Attachment
|
#region Key Counter Attachment
|
||||||
|
Loading…
Reference in New Issue
Block a user