mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-30 14:34:22 +01:00
fix controllers with bad calibration data
This commit is contained in:
parent
7371014f56
commit
05b4abce98
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user