Skip to content

Commit

Permalink
fix controllers with bad calibration data
Browse files Browse the repository at this point in the history
  • Loading branch information
dborth committed Feb 29, 2020
1 parent f4c6984 commit fcf5c5b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/gui/gui_trigger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ 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
Expand Down

0 comments on commit fcf5c5b

Please sign in to comment.