From f9de32e184406b1deff5869a6e71c0532adf62a9 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 18 May 2017 18:16:08 -0700 Subject: [PATCH] Use proper index for dinput only flag --- DS4Windows/DS4Control/ControlService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index 5ef4be1..d132e95 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -333,12 +333,12 @@ namespace DS4Windows if (xinputResult) { LogDebug("X360 Controller # " + xinputIndex + " connected"); - useDInputOnly[i] = false; + useDInputOnly[Index] = false; } else { LogDebug("X360 Controller # " + xinputIndex + " failed. Using DInput only mode"); - useDInputOnly[i] = true; + useDInputOnly[Index] = true; } }