[Wii] fixed support for 3rd-party classic controllers with invalid calibration

settings (continued)
This commit is contained in:
EkeEke 2014-07-14 16:29:55 +02:00
parent 1ebb43ca34
commit 06a10e3156
2 changed files with 6 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 3.8 MiB

View File

@ -1140,12 +1140,9 @@ int gx_input_FindDevices(void)
(js->max.y <= js->center.y) || (js->min.y >= js->center.y)) (js->max.y <= js->center.y) || (js->min.y >= js->center.y))
{ {
/* Reset to default values */ /* Reset to default values */
js->min.x = 0; js->min.x = js->min.y = 0;
js->max.x = 64; js->max.x = js->max.y = 64;
js->center.x = 32; js->center.x = js->center.y = 32;
js->min.y = 0;
js->max.y = 32;
js->center.y = 16 ;
} }
/* Right analog stick */ /* Right analog stick */
@ -1156,12 +1153,9 @@ int gx_input_FindDevices(void)
(js->max.y <= js->center.y) || (js->min.y >= js->center.y)) (js->max.y <= js->center.y) || (js->min.y >= js->center.y))
{ {
/* Reset to default values */ /* Reset to default values */
js->min.x = 0; js->min.x = js->min.y = 0;
js->max.x = 64; js->max.x = js->max.y = 32;
js->center.x = 32; js->center.x = js->center.y = 16;
js->min.y = 0;
js->max.y = 32;
js->center.y = 16 ;
} }
} }
} }