mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-17 00:16:20 +01:00
Added some optimizations
This commit is contained in:
parent
a58ee84362
commit
af4425763d
@ -705,6 +705,8 @@ namespace DS4Windows
|
||||
uint HamSeed = 2351727372;
|
||||
|
||||
private unsafe void performDs4Input()
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
firstActive = DateTime.UtcNow;
|
||||
NativeMethods.HidD_SetNumInputBuffers(hDevice.safeReadHandle.DangerousGetHandle(), 2);
|
||||
@ -1089,6 +1091,7 @@ namespace DS4Windows
|
||||
error = string.Empty;
|
||||
|
||||
cState.CopyTo(pState);
|
||||
}
|
||||
|
||||
lock (eventQueueLock)
|
||||
{
|
||||
|
@ -1,8 +1,10 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
using Microsoft.Win32.SafeHandles;
|
||||
namespace DS4Windows
|
||||
{
|
||||
[SuppressUnmanagedCodeSecurity]
|
||||
internal static class NativeMethods
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user