From a5581d94afe007b0d453f248ee8c1499869776b5 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Tue, 20 Jun 2017 15:54:28 +0200 Subject: [PATCH] Removed obsolete functions which accessed the obsolete joystick driver. --- src/OpenTK/GameWindow.cs | 19 ------------------- src/OpenTK/OpenTK.csproj | 3 --- src/OpenTK/Platform/Factory.cs | 14 +++----------- 3 files changed, 3 insertions(+), 33 deletions(-) diff --git a/src/OpenTK/GameWindow.cs b/src/OpenTK/GameWindow.cs index c3e875be..cb8f22e3 100644 --- a/src/OpenTK/GameWindow.cs +++ b/src/OpenTK/GameWindow.cs @@ -79,12 +79,6 @@ namespace OpenTK readonly Stopwatch watch = new Stopwatch(); - #pragma warning disable 612,618 - readonly IJoystickDriver LegacyJoystick = - Factory.Default.CreateLegacyJoystickDriver(); - #pragma warning restore 612,618 - - IGraphicsContext glContext; bool isExiting = false; @@ -581,19 +575,6 @@ namespace OpenTK #endregion - #region Joysticks - - /// - /// Gets a readonly IList containing all available OpenTK.Input.JoystickDevices. - /// - [Obsolete("Use OpenTK.Input.Joystick and GamePad instead")] - public IList Joysticks - { - get { return LegacyJoystick.Joysticks; } - } - - #endregion - #region --- GameWindow Timing --- // TODO: Disabled because it is not reliable enough. Use vsync as a workaround. diff --git a/src/OpenTK/OpenTK.csproj b/src/OpenTK/OpenTK.csproj index 55a2e7ae..438c7b48 100644 --- a/src/OpenTK/OpenTK.csproj +++ b/src/OpenTK/OpenTK.csproj @@ -440,9 +440,6 @@ Code - - Code - Code diff --git a/src/OpenTK/Platform/Factory.cs b/src/OpenTK/Platform/Factory.cs index c56d22bd..b67ba908 100644 --- a/src/OpenTK/Platform/Factory.cs +++ b/src/OpenTK/Platform/Factory.cs @@ -6,7 +6,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: @@ -192,14 +192,6 @@ namespace OpenTK.Platform return defaultImplementation.CreateJoystickDriver(); } - [Obsolete] - public IJoystickDriver CreateLegacyJoystickDriver() - { - #pragma warning disable 612,618 - return defaultImplementation.CreateLegacyJoystickDriver(); - #pragma warning restore 612,618 - } - public void RegisterResource(IDisposable resource) { defaultImplementation.RegisterResource(resource); @@ -210,9 +202,9 @@ namespace OpenTK.Platform #region Fields static readonly string error_string = "Please, refer to http://www.opentk.com for more information."; - + #endregion - + #region IPlatformFactory Members public override INativeWindow CreateNativeWindow(int x, int y, int width, int height, string title, GraphicsMode mode, GameWindowFlags options, DisplayDevice device)