From c5455006818ab3e3bd9516fc4444a445e5f6cc5d Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 4 May 2008 17:47:09 +0000 Subject: [PATCH] Fixed a bug where WheelDelta reported the same value as Wheel. --- Source/OpenTK/Input/MouseDevice.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Input/MouseDevice.cs b/Source/OpenTK/Input/MouseDevice.cs index 0428cc7d..0681b4ef 100644 --- a/Source/OpenTK/Input/MouseDevice.cs +++ b/Source/OpenTK/Input/MouseDevice.cs @@ -27,6 +27,8 @@ namespace OpenTK.Input #region --- IInputDevice Members --- + #region public string Description + /// /// Gets a string describing this MouseDevice. /// @@ -36,6 +38,10 @@ namespace OpenTK.Input internal set { description = value; } } + #endregion + + #region public InputDeviceType DeviceType + /// /// Gets an value indicating the InputDeviceType of this InputDevice. /// @@ -46,6 +52,8 @@ namespace OpenTK.Input #endregion + #endregion + #region --- Public Members --- #region public int NumberOfButtons @@ -116,7 +124,7 @@ namespace OpenTK.Input { int result = wheel - wheel_last_accessed; wheel_last_accessed = wheel; - return wheel; + return result; } }