Skip to content

Commit

Permalink
Fixed bug #6533 - PS2_JoystickUpdate: some invalid condition
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Nov 17, 2022
1 parent b7358e4 commit 60c6cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/ps2/SDL_sysjoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 60c6cd5

Please sign in to comment.