mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Change volume control mouse wheel behaviour to not gain full-screen focus.
This commit is contained in:
@ -12,11 +12,11 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
||||
{
|
||||
class VolumeControlReceptor : Container
|
||||
{
|
||||
public Action ActivateRequested;
|
||||
public Action<InputState> ActionRequested;
|
||||
|
||||
protected override bool OnWheel(InputState state)
|
||||
{
|
||||
ActivateRequested?.Invoke();
|
||||
ActionRequested?.Invoke(state);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
||||
{
|
||||
case Key.Up:
|
||||
case Key.Down:
|
||||
ActivateRequested?.Invoke();
|
||||
ActionRequested?.Invoke(state);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user