mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +08:00
Merge pull request #613 from ppy/peppy/general-fixes
Peppy/general fixes
This commit is contained in:
commit
d2a889d2bb
@ -1 +1 @@
|
|||||||
Subproject commit 45e75163b272b7aa023afec7801ea079aba4ee69
|
Subproject commit 7ac3dbff3615fb410da1e330e6379b53a41292b6
|
@ -42,14 +42,14 @@ namespace osu.Game.Modes.Osu
|
|||||||
{
|
{
|
||||||
if (mouseDisabled.Value)
|
if (mouseDisabled.Value)
|
||||||
{
|
{
|
||||||
mouse.PressedButtons.Remove(MouseButton.Left);
|
mouse.SetPressed(MouseButton.Left, false);
|
||||||
mouse.PressedButtons.Remove(MouseButton.Right);
|
mouse.SetPressed(MouseButton.Right, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (leftViaKeyboard)
|
if (leftViaKeyboard)
|
||||||
mouse.PressedButtons.Add(MouseButton.Left);
|
mouse.SetPressed(MouseButton.Left, true);
|
||||||
if (rightViaKeyboard)
|
if (rightViaKeyboard)
|
||||||
mouse.PressedButtons.Add(MouseButton.Right);
|
mouse.SetPressed(MouseButton.Right, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ namespace osu.Game.Modes.Replays
|
|||||||
public ReplayMouseState(Vector2 position, IEnumerable<MouseButton> list)
|
public ReplayMouseState(Vector2 position, IEnumerable<MouseButton> list)
|
||||||
{
|
{
|
||||||
Position = position;
|
Position = position;
|
||||||
list.ForEach(b => PressedButtons.Add(b));
|
list.ForEach(b => SetPressed(b, true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,4 +148,4 @@ namespace osu.Game.Modes.Replays
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user