mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 05:05:28 +00:00
Fixed a bug where WheelDelta reported the same value as Wheel.
This commit is contained in:
parent
025b57d428
commit
1510c282de
|
@ -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