diff options
author | Berkan Diler <berkan.diler1@ingka.ikea.com> | 2022-02-13 14:50:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-13 10:50:07 -0300 |
commit | 8f353457295767edaaf9dfccb4d938bc1befeb40 (patch) | |
tree | d263a7bdb9aca026105b0681d3d5ec4849cf8a2e /Ryujinx.Input/Motion/CemuHook/Client.cs | |
parent | ce71f9144e1575c432bb009755f01466cd685fbf (diff) |
Use Enum and Delegate.CreateDelegate generic overloads (#3111)1.1.27
* Use Enum generic overloads
* Remove EnumExtensions.cs
* Use Delegate.CreateDelegate generic overloads
Diffstat (limited to 'Ryujinx.Input/Motion/CemuHook/Client.cs')
-rw-r--r-- | Ryujinx.Input/Motion/CemuHook/Client.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Input/Motion/CemuHook/Client.cs b/Ryujinx.Input/Motion/CemuHook/Client.cs index 214e23f0..ecaf26f0 100644 --- a/Ryujinx.Input/Motion/CemuHook/Client.cs +++ b/Ryujinx.Input/Motion/CemuHook/Client.cs @@ -27,8 +27,8 @@ namespace Ryujinx.Input.Motion.CemuHook private readonly Dictionary<int, Dictionary<int, MotionInput>> _motionData; private readonly Dictionary<int, UdpClient> _clients; - private readonly bool[] _clientErrorStatus = new bool[Enum.GetValues(typeof(PlayerIndex)).Length]; - private readonly long[] _clientRetryTimer = new long[Enum.GetValues(typeof(PlayerIndex)).Length]; + private readonly bool[] _clientErrorStatus = new bool[Enum.GetValues<PlayerIndex>().Length]; + private readonly long[] _clientRetryTimer = new long[Enum.GetValues<PlayerIndex>().Length]; private NpadManager _npadManager; public Client(NpadManager npadManager) |