Corrected force feedback motor values on SONYWA sync change

This commit is contained in:
Travis Nickles 2019-03-22 15:13:18 -05:00
parent 87d8ae0c1d
commit 2c4ce7d672

View File

@ -1049,7 +1049,7 @@ namespace DS4Windows
x360controls[ind].Disconnect(); x360controls[ind].Disconnect();
x360controls[ind] = null; x360controls[ind] = null;
useDInputOnly[ind] = true; useDInputOnly[ind] = true;
LogDebug("X360 Controller # " + (ind + 1) + " unplugged"); LogDebug("X360 Controller #" + (ind + 1) + " unplugged");
} }
} }
else else
@ -1058,13 +1058,13 @@ namespace DS4Windows
{ {
LogDebug("Plugging in X360 Controller #" + (ind + 1)); LogDebug("Plugging in X360 Controller #" + (ind + 1));
x360controls[ind] = new Xbox360Controller(vigemTestClient); x360controls[ind] = new Xbox360Controller(vigemTestClient);
x360controls[ind].Connect();
x360controls[ind].FeedbackReceived += (eventsender, args) => x360controls[ind].FeedbackReceived += (eventsender, args) =>
{ {
setRumble(args.SmallMotor, args.LargeMotor, ind); SetDevRumble(device, args.LargeMotor, args.SmallMotor, ind);
}; };
x360controls[ind].Connect();
useDInputOnly[ind] = false; useDInputOnly[ind] = false;
LogDebug("X360 Controller # " + (ind + 1) + " connected"); LogDebug("X360 Controller #" + (ind + 1) + " connected");
} }
} }
} }