mirror of
https://github.com/ppy/osu.git
synced 2026-05-17 07:22:38 +08:00
Update with new input changes from framework.
This commit is contained in:
+1
-1
Submodule osu-framework updated: 45e75163b2...11b1c69d5f
@@ -42,14 +42,14 @@ namespace osu.Game.Modes.Osu
|
||||
{
|
||||
if (mouseDisabled.Value)
|
||||
{
|
||||
mouse.PressedButtons.Remove(MouseButton.Left);
|
||||
mouse.PressedButtons.Remove(MouseButton.Right);
|
||||
mouse.SetPressed(MouseButton.Left, false);
|
||||
mouse.SetPressed(MouseButton.Right, false);
|
||||
}
|
||||
|
||||
if (leftViaKeyboard)
|
||||
mouse.PressedButtons.Add(MouseButton.Left);
|
||||
mouse.SetPressed(MouseButton.Left, true);
|
||||
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)
|
||||
{
|
||||
Position = position;
|
||||
list.ForEach(b => PressedButtons.Add(b));
|
||||
list.ForEach(b => SetPressed(b, true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,4 +148,4 @@ namespace osu.Game.Modes.Replays
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user