Fixed Y buffer clearing in trackball routine

This commit is contained in:
Travis Nickles 2020-01-10 16:09:51 -06:00
parent 9b5b531dcb
commit 1c846513dc

View File

@ -421,7 +421,7 @@ namespace DS4Windows
if (!Global.UseTPforControls[deviceNum]) if (!Global.UseTPforControls[deviceNum])
{ {
Array.Clear(trackballXBuffer, 0, TRACKBALL_BUFFER_LEN); Array.Clear(trackballXBuffer, 0, TRACKBALL_BUFFER_LEN);
Array.Clear(trackballXBuffer, 0, TRACKBALL_BUFFER_LEN); Array.Clear(trackballYBuffer, 0, TRACKBALL_BUFFER_LEN);
trackballXVel = 0.0; trackballXVel = 0.0;
trackballYVel = 0.0; trackballYVel = 0.0;
trackballActive = false; trackballActive = false;