Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Commit

Permalink
[Toolkit.Input] Fix issue #403. MouseState.WheelDelta is now absolute…
Browse files Browse the repository at this point in the history
… and compatible with XNA behavior.
  • Loading branch information
xoofx committed Feb 21, 2013
1 parent 5aba194 commit 624d7a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Toolkit/SharpDX.Toolkit.Input/MouseManager.cs
Expand Up @@ -109,7 +109,7 @@ private void HandleMouseUp(MouseButton button)
/// <param name="wheelDelta">The pressed button</param>
private void HandleWheelDelta(int wheelDelta)
{
this.wheelDelta = wheelDelta;
this.wheelDelta += wheelDelta;
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Source/Toolkit/SharpDX.Toolkit.Input/MouseState.cs
Expand Up @@ -94,7 +94,7 @@ public MouseState(ButtonState left, ButtonState middle, ButtonState right, Butto
public int Y { get { return y; } }

/// <summary>
/// Delta of mouse wheel relative to previous input event
/// Gets the cumulative mouse scroll wheel value since the game was started.
/// </summary>
public int WheelDelta { get { return wheelDelta; } }
}
Expand Down

0 comments on commit 624d7a7

Please sign in to comment.