Return pad error if status != 0

This commit is contained in:
Xavier Del Campo Romero 2021-01-03 01:10:38 +01:00
parent c228553d7e
commit fe8c6b7672
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ bool PadOneConnected(void)
{
psx_pad_state PadOne = PadOneGetState();
if ( (PadOne.status != PAD_STATUS_OK)
if ( PadOne.status
&&
(PadOneGetID() == PAD_FLOATING_ID) )
{
@ -143,7 +143,7 @@ bool PadTwoConnected(void)
{
psx_pad_state PadTwo = PadTwoGetState();
if ( (PadTwo.status != PAD_STATUS_OK)
if ( PadTwo.status
&&
(PadTwoGetID() == PAD_FLOATING_ID) )
{