diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2021-01-03 01:10:38 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2021-01-03 02:52:19 +0100 |
| commit | fe8c6b7672fce25460d60b99c1db4a2b9da65861 (patch) | |
| tree | cff47c0b77860ab6e0237c896bd9319814d4384d | |
| parent | c228553d7e2beb8f4f8e4e9d35b3fb8d22f184f4 (diff) | |
Return pad error if status != 0
| -rw-r--r-- | Source/Pad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Pad.c b/Source/Pad.c index a506414..e1695cf 100644 --- a/Source/Pad.c +++ b/Source/Pad.c @@ -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) ) { |
