mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-09-21 06:30:40 +02:00
Fixed bug #6533 - PS2_JoystickUpdate: some invalid condition
This commit is contained in:
parent
b7358e47d5
commit
60c6cd554d
@ -275,7 +275,7 @@ static void PS2_JoystickUpdate(SDL_Joystick *joystick)
|
||||
struct JoyInfo *info = &joyInfo[index];
|
||||
int state = padGetState(info->port, info->slot);
|
||||
|
||||
if (state != PAD_STATE_DISCONN || state != PAD_STATE_EXECCMD || state != PAD_STATE_ERROR) {
|
||||
if (state != PAD_STATE_DISCONN && state != PAD_STATE_EXECCMD && state != PAD_STATE_ERROR) {
|
||||
int ret = padRead(info->port, info->slot, &buttons); /* port, slot, buttons */
|
||||
if (ret != 0) {
|
||||
/* Buttons */
|
||||
|
Loading…
Reference in New Issue
Block a user