From 0ccb3afd374d26b78a42286cb90a591c230a5800 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 12 Dec 2020 22:33:11 -0800 Subject: [PATCH] Fixed polling values after SYN_DROPPED event --- src/joystick/linux/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index 3c1e432e7..c2ddaaf9b 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -1145,7 +1145,7 @@ PollAllValues(SDL_Joystick *joystick) i = ABS_HAT3Y; continue; } - if (joystick->hwdata->abs_correct[i].used) { + if (joystick->hwdata->has_abs[i]) { if (ioctl(joystick->hwdata->fd, EVIOCGABS(i), &absinfo) >= 0) { absinfo.value = AxisCorrect(joystick, i, absinfo.value);