fix controllers with bad calibration data

This commit is contained in:
Daryl Borth 2020-02-28 18:50:40 -07:00
parent 8347469358
commit e748fe252a

View File

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