From 5f9bf7fea3eaa5339427414ed6b70c7b00a38980 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Tue, 20 Jun 2017 15:48:04 +0200 Subject: [PATCH] Removed obsolete compatibility properties. --- src/OpenTK/Input/MouseDevice.cs | 66 +-------------------------------- 1 file changed, 2 insertions(+), 64 deletions(-) diff --git a/src/OpenTK/Input/MouseDevice.cs b/src/OpenTK/Input/MouseDevice.cs index 32585a03..9b2613d4 100644 --- a/src/OpenTK/Input/MouseDevice.cs +++ b/src/OpenTK/Input/MouseDevice.cs @@ -8,7 +8,7 @@ // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal - // in the Software without restriction, including without limitation the rights to + // in the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of // the Software, and to permit persons to whom the Software is furnished to do // so, subject to the following conditions: @@ -75,7 +75,7 @@ namespace OpenTK.Input #region public InputDeviceType DeviceType /// - /// Gets a value indicating the InputDeviceType of this InputDevice. + /// Gets a value indicating the InputDeviceType of this InputDevice. /// public InputDeviceType DeviceType { @@ -303,67 +303,5 @@ namespace OpenTK.Input #endregion #endregion - - #region COMPAT_REV1519 - -#if COMPAT_REV1519 - - #region public int WheelDelta - - /// - /// Gets an integer representing the relative wheel movement. - /// - [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 - - /// - /// Gets an integer representing the relative x movement of the pointer, in pixel coordinates. - /// - [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 - - /// - /// Gets an integer representing the relative y movement of the pointer, in pixel coordinates. - /// - [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 } }