mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-23 14:08:45 +00:00
Removed obsolete functions which accessed the obsolete joystick driver.
This commit is contained in:
parent
8719556315
commit
a5581d94af
|
@ -79,12 +79,6 @@ namespace OpenTK
|
||||||
|
|
||||||
readonly Stopwatch watch = new Stopwatch();
|
readonly Stopwatch watch = new Stopwatch();
|
||||||
|
|
||||||
#pragma warning disable 612,618
|
|
||||||
readonly IJoystickDriver LegacyJoystick =
|
|
||||||
Factory.Default.CreateLegacyJoystickDriver();
|
|
||||||
#pragma warning restore 612,618
|
|
||||||
|
|
||||||
|
|
||||||
IGraphicsContext glContext;
|
IGraphicsContext glContext;
|
||||||
|
|
||||||
bool isExiting = false;
|
bool isExiting = false;
|
||||||
|
@ -581,19 +575,6 @@ namespace OpenTK
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Joysticks
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets a readonly IList containing all available OpenTK.Input.JoystickDevices.
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete("Use OpenTK.Input.Joystick and GamePad instead")]
|
|
||||||
public IList<JoystickDevice> Joysticks
|
|
||||||
{
|
|
||||||
get { return LegacyJoystick.Joysticks; }
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region --- GameWindow Timing ---
|
#region --- GameWindow Timing ---
|
||||||
|
|
||||||
// TODO: Disabled because it is not reliable enough. Use vsync as a workaround.
|
// TODO: Disabled because it is not reliable enough. Use vsync as a workaround.
|
||||||
|
|
|
@ -440,9 +440,6 @@
|
||||||
<Compile Include="Input\IJoystickDriver.cs">
|
<Compile Include="Input\IJoystickDriver.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Input\IMouseDriver.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Input\IInputDriver.cs">
|
<Compile Include="Input\IInputDriver.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
// of this software and associated documentation files (the "Software"), to deal
|
// 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
|
// 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
|
// the Software, and to permit persons to whom the Software is furnished to do
|
||||||
// so, subject to the following conditions:
|
// so, subject to the following conditions:
|
||||||
|
@ -192,14 +192,6 @@ namespace OpenTK.Platform
|
||||||
return defaultImplementation.CreateJoystickDriver();
|
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)
|
public void RegisterResource(IDisposable resource)
|
||||||
{
|
{
|
||||||
defaultImplementation.RegisterResource(resource);
|
defaultImplementation.RegisterResource(resource);
|
||||||
|
@ -210,9 +202,9 @@ namespace OpenTK.Platform
|
||||||
#region Fields
|
#region Fields
|
||||||
|
|
||||||
static readonly string error_string = "Please, refer to http://www.opentk.com for more information.";
|
static readonly string error_string = "Please, refer to http://www.opentk.com for more information.";
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region IPlatformFactory Members
|
#region IPlatformFactory Members
|
||||||
|
|
||||||
public override INativeWindow CreateNativeWindow(int x, int y, int width, int height, string title, GraphicsMode mode, GameWindowFlags options, DisplayDevice device)
|
public override INativeWindow CreateNativeWindow(int x, int y, int width, int height, string title, GraphicsMode mode, GameWindowFlags options, DisplayDevice device)
|
||||||
|
|
Loading…
Reference in a new issue