mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-30 14:34:22 +01:00
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:
parent
6582c58648
commit
c1bbda273b
@ -133,6 +133,10 @@ 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