Skip to content

Commit

Permalink
Add Alt+MouseWheel as a global volume adjust binding
Browse files Browse the repository at this point in the history
This offers the defaults users have come to expect while also allowing
rebinding (if they don't want it) and better compatibility with other
global actions (since this is no longer implemented using `OnScroll`
event flow).

Addresses part of ppy#31267.
  • Loading branch information
peppy committed Dec 26, 2024
1 parent 62e536b commit 61d313f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osu.Game/Input/Bindings/GlobalActionContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ public static IEnumerable<GlobalAction> GetGlobalActionsFor(GlobalActionCategory
private static IEnumerable<KeyBinding> audioControlKeyBindings => new[]
{
new KeyBinding(new[] { InputKey.Alt, InputKey.Up }, GlobalAction.IncreaseVolume),
new KeyBinding(new[] { InputKey.Alt, InputKey.MouseWheelUp }, GlobalAction.IncreaseVolume),
new KeyBinding(new[] { InputKey.Alt, InputKey.Down }, GlobalAction.DecreaseVolume),
new KeyBinding(new[] { InputKey.Alt, InputKey.MouseWheelDown }, GlobalAction.DecreaseVolume),

new KeyBinding(new[] { InputKey.Alt, InputKey.Left }, GlobalAction.PreviousVolumeMeter),
new KeyBinding(new[] { InputKey.Alt, InputKey.Right }, GlobalAction.NextVolumeMeter),
Expand Down

0 comments on commit 61d313f

Please sign in to comment.