mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 15:17:44 +08:00
prevent volume control from eating inputs
This commit is contained in:
parent
ba44757c86
commit
5da8bb5bec
@ -23,15 +23,15 @@ namespace osu.Game.Overlays.Volume
|
|||||||
{
|
{
|
||||||
case GlobalAction.DecreaseVolume:
|
case GlobalAction.DecreaseVolume:
|
||||||
case GlobalAction.IncreaseVolume:
|
case GlobalAction.IncreaseVolume:
|
||||||
ActionRequested?.Invoke(e.Action);
|
return ActionRequested?.Invoke(e.Action) == true;
|
||||||
return true;
|
|
||||||
|
|
||||||
case GlobalAction.ToggleMute:
|
case GlobalAction.ToggleMute:
|
||||||
case GlobalAction.NextVolumeMeter:
|
case GlobalAction.NextVolumeMeter:
|
||||||
case GlobalAction.PreviousVolumeMeter:
|
case GlobalAction.PreviousVolumeMeter:
|
||||||
if (!e.Repeat)
|
if (!e.Repeat)
|
||||||
ActionRequested?.Invoke(e.Action);
|
return ActionRequested?.Invoke(e.Action) == true;
|
||||||
return true;
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -120,14 +120,18 @@ namespace osu.Game.Overlays
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GlobalAction.NextVolumeMeter:
|
case GlobalAction.NextVolumeMeter:
|
||||||
if (State.Value == Visibility.Visible)
|
if (State.Value != Visibility.Visible)
|
||||||
volumeMeters.SelectNext();
|
return false;
|
||||||
|
|
||||||
|
volumeMeters.SelectNext();
|
||||||
Show();
|
Show();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GlobalAction.PreviousVolumeMeter:
|
case GlobalAction.PreviousVolumeMeter:
|
||||||
if (State.Value == Visibility.Visible)
|
if (State.Value != Visibility.Visible)
|
||||||
volumeMeters.SelectPrevious();
|
return false;
|
||||||
|
|
||||||
|
volumeMeters.SelectPrevious();
|
||||||
Show();
|
Show();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user