Fix default game selection menu "jump" upon startup w/classic controller (#1035)

* Fix default game selection menu "jump" upon startup w/classic controller

* remove an unused comment
This commit is contained in:
InfiniteBlueGX 2022-10-25 21:07:46 -05:00 committed by GitHub
parent 6582c58648
commit c1bbda273b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,6 +133,10 @@ s8 GuiTrigger::WPAD_Stick(u8 stick, int axis)
center = js->center.x;
}
if(min == max) {
return 0;
}
// some 3rd party controllers return invalid analog sticks calibration data
if ((min >= center) || (max <= center)) {
// force default calibration settings