mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 23:12:56 +08:00
Allow pausing gameplay via middle mouse button
This commit is contained in:
parent
57cfdb82ce
commit
08696b9bca
@ -56,6 +56,7 @@ namespace osu.Game.Input.Bindings
|
||||
new KeyBinding(new[] { InputKey.Control, InputKey.Tilde }, GlobalAction.QuickExit),
|
||||
new KeyBinding(new[] { InputKey.Control, InputKey.Plus }, GlobalAction.IncreaseScrollSpeed),
|
||||
new KeyBinding(new[] { InputKey.Control, InputKey.Minus }, GlobalAction.DecreaseScrollSpeed),
|
||||
new KeyBinding(InputKey.MouseMiddle, GlobalAction.PauseGameplay),
|
||||
};
|
||||
|
||||
public IEnumerable<KeyBinding> AudioControlKeyBindings => new[]
|
||||
@ -157,5 +158,8 @@ namespace osu.Game.Input.Bindings
|
||||
|
||||
[Description("Home")]
|
||||
Home,
|
||||
|
||||
[Description("Pause")]
|
||||
PauseGameplay,
|
||||
}
|
||||
}
|
||||
|
@ -251,6 +251,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
switch (action)
|
||||
{
|
||||
case GlobalAction.Back:
|
||||
case GlobalAction.PauseGameplay:
|
||||
if (!pendingAnimation)
|
||||
BeginConfirm();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user