mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-26 19:21:49 +01:00
[Wii] fixed support for 3rd-party classic controllers with invalid calibration
settings (continued)
This commit is contained in:
parent
1ebb43ca34
commit
06a10e3156
Binary file not shown.
Before Width: | Height: | Size: 3.8 MiB After Width: | Height: | Size: 3.8 MiB |
@ -1140,12 +1140,9 @@ int gx_input_FindDevices(void)
|
||||
(js->max.y <= js->center.y) || (js->min.y >= js->center.y))
|
||||
{
|
||||
/* Reset to default values */
|
||||
js->min.x = 0;
|
||||
js->max.x = 64;
|
||||
js->center.x = 32;
|
||||
js->min.y = 0;
|
||||
js->max.y = 32;
|
||||
js->center.y = 16 ;
|
||||
js->min.x = js->min.y = 0;
|
||||
js->max.x = js->max.y = 64;
|
||||
js->center.x = js->center.y = 32;
|
||||
}
|
||||
|
||||
/* Right analog stick */
|
||||
@ -1156,12 +1153,9 @@ int gx_input_FindDevices(void)
|
||||
(js->max.y <= js->center.y) || (js->min.y >= js->center.y))
|
||||
{
|
||||
/* Reset to default values */
|
||||
js->min.x = 0;
|
||||
js->max.x = 64;
|
||||
js->center.x = 32;
|
||||
js->min.y = 0;
|
||||
js->max.y = 32;
|
||||
js->center.y = 16 ;
|
||||
js->min.x = js->min.y = 0;
|
||||
js->max.x = js->max.y = 32;
|
||||
js->center.x = js->center.y = 16;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user