Removed obsolete compatibility properties.
This commit is contained in:
parent
aba454288f
commit
5f9bf7fea3
1 changed files with 2 additions and 64 deletions
|
@ -303,67 +303,5 @@ namespace OpenTK.Input
|
|||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region COMPAT_REV1519
|
||||
|
||||
#if COMPAT_REV1519
|
||||
|
||||
#region public int WheelDelta
|
||||
|
||||
/// <summary>
|
||||
/// Gets an integer representing the relative wheel movement.
|
||||
/// </summary>
|
||||
[Obsolete("WheelDelta is only defined for a single WheelChanged event. Use the OpenTK.Input.MouseWheelEventArgs::Delta property with the OpenTK.Input.MouseDevice::WheelChanged event.", false)]
|
||||
public int WheelDelta
|
||||
{
|
||||
get
|
||||
{
|
||||
int result = (int)Math.Round(state.WheelPrecise - wheel_last_accessed, MidpointRounding.AwayFromZero);
|
||||
wheel_last_accessed = state.Wheel;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region public int XDelta
|
||||
|
||||
/// <summary>
|
||||
/// Gets an integer representing the relative x movement of the pointer, in pixel coordinates.
|
||||
/// </summary>
|
||||
[Obsolete("XDelta is only defined for a single Move event. Use the OpenTK.Input.MouseMoveEventArgs::Delta property with the OpenTK.Input.MouseDevice::Move event.", false)]
|
||||
public int XDelta
|
||||
{
|
||||
get
|
||||
{
|
||||
int result = state.X - pos_last_accessed.X;
|
||||
pos_last_accessed.X = state.X;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region public int YDelta
|
||||
|
||||
/// <summary>
|
||||
/// Gets an integer representing the relative y movement of the pointer, in pixel coordinates.
|
||||
/// </summary>
|
||||
[Obsolete("YDelta is only defined for a single Move event. Use the OpenTK.Input.MouseMoveEventArgs::Delta property with the OpenTK.Input.MouseDevice::Move event.", false)]
|
||||
public int YDelta
|
||||
{
|
||||
get
|
||||
{
|
||||
int result = state.Y - pos_last_accessed.Y;
|
||||
pos_last_accessed.Y = state.Y;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue