Add support for binding mousewheel actions

This commit is contained in:
Dean Herbert 2017-08-22 14:42:49 +09:00
parent 3254e16e9c
commit ff8ad30127
1 changed files with 15 additions and 0 deletions

View File

@ -172,6 +172,21 @@ protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
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)