mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-02-27 16:34:03 +01:00
improved input controller detection on menu exit
This commit is contained in:
parent
5567576861
commit
03c3f9c135
@ -717,11 +717,10 @@ int gx_input_FindDevices(void)
|
|||||||
{
|
{
|
||||||
case 0: /* Gamecube Controller */
|
case 0: /* Gamecube Controller */
|
||||||
{
|
{
|
||||||
if (!(pad & (1 << config.input[player].port)))
|
if (pad & (1 << config.input[player].port))
|
||||||
{
|
{
|
||||||
return 0;
|
found++;
|
||||||
}
|
}
|
||||||
found++;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -730,11 +729,10 @@ int gx_input_FindDevices(void)
|
|||||||
{
|
{
|
||||||
wpad = 255;
|
wpad = 255;
|
||||||
WPAD_Probe(config.input[player].port, &wpad);
|
WPAD_Probe(config.input[player].port, &wpad);
|
||||||
if (wpad == 255)
|
if (wpad != 255)
|
||||||
{
|
{
|
||||||
return 0;
|
found++;
|
||||||
}
|
}
|
||||||
found++;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -743,11 +741,10 @@ int gx_input_FindDevices(void)
|
|||||||
{
|
{
|
||||||
wpad = 255;
|
wpad = 255;
|
||||||
WPAD_Probe(config.input[player].port, &wpad);
|
WPAD_Probe(config.input[player].port, &wpad);
|
||||||
if (wpad != (config.input[player].device - 1))
|
if (wpad == (config.input[player].device - 1))
|
||||||
{
|
{
|
||||||
return 0;
|
found++;
|
||||||
}
|
}
|
||||||
found++;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user