mirror of https://github.com/ppy/osu
Fix mouse button disable not disabling touch input mappings
This commit is contained in:
parent
df6a755c36
commit
88602ec1b4
|
@ -127,6 +127,17 @@ protected override bool Handle(UIEvent 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
|
||||
|
||||
#region Key Counter Attachment
|
||||
|
|
Loading…
Reference in New Issue