mirror of
https://github.com/dborth/fceugx.git
synced 2024-12-04 22:34:14 +01:00
fix controllers with bad calibration data
This commit is contained in:
parent
f4c69843b3
commit
fcf5c5bc1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user