Other input states need to be considered for wheel bindings

This commit is contained in:
smoogipoo 2018-06-26 20:34:22 +09:00
parent 563cb46b4a
commit 8a81fba1ea
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ protected override bool OnScroll(InputState state)
{
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;
}