Fixed polling values after SYN_DROPPED event

main
Sam Lantinga 2020-12-12 22:33:11 -08:00
parent 9ee0e8886c
commit 0ccb3afd37
1 changed files with 1 additions and 1 deletions

View File

@ -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);