Fixed touchpad disable invert

This commit is contained in:
Travis Nickles 2019-10-04 14:46:57 -05:00
parent 16d8196bbf
commit 7f1c86ba7a
3 changed files with 3 additions and 2 deletions

View File

@ -359,7 +359,7 @@ namespace DS4Windows
tempBool = true; tempBool = true;
for (int i = 0, arlen = disArray.Length; tempBool && i < arlen; i++) for (int i = 0, arlen = disArray.Length; tempBool && i < arlen; i++)
{ {
if (getDS4ControlsByName(disArray[i]) == false) if (disArray[i] == -1 || getDS4ControlsByName(disArray[i]) == false)
tempBool = false; tempBool = false;
} }

View File

@ -644,6 +644,7 @@ namespace DS4Windows.Forms
cBTouchpadJitterCompensation.Checked = TouchpadJitterCompensation[device]; cBTouchpadJitterCompensation.Checked = TouchpadJitterCompensation[device];
tempInt = TouchpadInvert[device]; tempInt = TouchpadInvert[device];
// Array values are set up so Array.IndexOf call is not necessary
touchpadInvertComboBox.SelectedIndex = touchpadInvertToValue[tempInt]; touchpadInvertComboBox.SelectedIndex = touchpadInvertToValue[tempInt];
cBlowerRCOn.Checked = LowerRCOn[device]; cBlowerRCOn.Checked = LowerRCOn[device];

View File

@ -1,7 +1,7 @@
# TODO # TODO
* Check Options save * Check Options save
* Check TouchpadInvert setting * ~~Check TouchpadInvert setting~~
* Add cross dead zone (per axis) for sticks * Add cross dead zone (per axis) for sticks
* ~~Add more curve options~~ * ~~Add more curve options~~
* ~~Transition to use Visual Studio 2019~~ * ~~Transition to use Visual Studio 2019~~