mirror of
https://github.com/ppy/osu
synced 2025-03-01 17:11:12 +00:00
Add support for binding mousewheel actions
This commit is contained in:
parent
3254e16e9c
commit
ff8ad30127
@ -172,6 +172,21 @@ namespace osu.Game.Overlays.KeyBinding
|
||||
return base.OnMouseUp(state, args);
|
||||
}
|
||||
|
||||
protected override bool OnWheel(InputState state)
|
||||
{
|
||||
if (HasFocus)
|
||||
{
|
||||
if (bindTarget.IsHovered)
|
||||
{
|
||||
bindTarget.UpdateKeyCombination(KeyCombination.FromInputState(state));
|
||||
finalise();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return base.OnWheel(state);
|
||||
}
|
||||
|
||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
if (!HasFocus)
|
||||
|
Loading…
Reference in New Issue
Block a user