mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 12:55:36 +00:00
[OpenTK] Use LegacyJoystickDriver for IJoystickDriver implementation
This commit is contained in:
parent
fb917a6d89
commit
73e3b66038
|
@ -78,6 +78,8 @@ namespace OpenTK
|
||||||
const double MaxFrequency = 500.0; // Frequency cap for Update/RenderFrame events
|
const double MaxFrequency = 500.0; // Frequency cap for Update/RenderFrame events
|
||||||
|
|
||||||
readonly Stopwatch watch = new Stopwatch();
|
readonly Stopwatch watch = new Stopwatch();
|
||||||
|
readonly IJoystickDriver LegacyJoystick =
|
||||||
|
Factory.Default.CreateLegacyJoystickDriver();
|
||||||
|
|
||||||
IGraphicsContext glContext;
|
IGraphicsContext glContext;
|
||||||
|
|
||||||
|
@ -576,9 +578,10 @@ namespace OpenTK
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a readonly IList containing all available OpenTK.Input.JoystickDevices.
|
/// Gets a readonly IList containing all available OpenTK.Input.JoystickDevices.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("Use OpenTK.Input.Joystick and GamePad instead")]
|
||||||
public IList<JoystickDevice> Joysticks
|
public IList<JoystickDevice> Joysticks
|
||||||
{
|
{
|
||||||
get { return InputDriver.Joysticks; }
|
get { return LegacyJoystick.Joysticks; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue