Fixed a bug where WheelDelta reported the same value as Wheel.
This commit is contained in:
parent
b9cb215d9b
commit
c545500681
1 changed files with 9 additions and 1 deletions
|
@ -27,6 +27,8 @@ namespace OpenTK.Input
|
|||
|
||||
#region --- IInputDevice Members ---
|
||||
|
||||
#region public string Description
|
||||
|
||||
/// <summary>
|
||||
/// Gets a string describing this MouseDevice.
|
||||
/// </summary>
|
||||
|
@ -36,6 +38,10 @@ namespace OpenTK.Input
|
|||
internal set { description = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region public InputDeviceType DeviceType
|
||||
|
||||
/// <summary>
|
||||
/// Gets an value indicating the InputDeviceType of this InputDevice.
|
||||
/// </summary>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue