mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 23:43:03 +08:00
Fix mouse button disable not disabling touch input mappings
This commit is contained in:
parent
df6a755c36
commit
88602ec1b4
@ -127,6 +127,17 @@ namespace osu.Game.Rulesets.UI
|
|||||||
return base.Handle(e);
|
return base.Handle(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override bool HandleMouseTouchStateChange(TouchStateChangeEvent e)
|
||||||
|
{
|
||||||
|
if (mouseDisabled.Value)
|
||||||
|
{
|
||||||
|
// Only propagate positional data when mouse buttons are disabled.
|
||||||
|
e = new TouchStateChangeEvent(e.State, e.Input, e.Touch, false, e.LastPosition);
|
||||||
|
}
|
||||||
|
|
||||||
|
return base.HandleMouseTouchStateChange(e);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Key Counter Attachment
|
#region Key Counter Attachment
|
||||||
|
Loading…
Reference in New Issue
Block a user