mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:33:21 +08:00
Other input states need to be considered for wheel bindings
This commit is contained in:
parent
563cb46b4a
commit
8a81fba1ea
@ -186,7 +186,7 @@ namespace osu.Game.Overlays.KeyBinding
|
||||
{
|
||||
if (bindTarget.IsHovered)
|
||||
{
|
||||
bindTarget.UpdateKeyCombination(new KeyCombination(new[] { state.Mouse.ScrollDelta.Y > 0 ? InputKey.MouseWheelUp : InputKey.MouseWheelDown }));
|
||||
bindTarget.UpdateKeyCombination(new KeyCombination(KeyCombination.FromInputState(state).Keys.Append(state.Mouse.ScrollDelta.Y > 0 ? InputKey.MouseWheelUp : InputKey.MouseWheelDown)));
|
||||
finalise();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user