mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed polling values after SYN_DROPPED event
This commit is contained in:
parent
9ee0e8886c
commit
0ccb3afd37
@ -1145,7 +1145,7 @@ PollAllValues(SDL_Joystick *joystick)
|
|||||||
i = ABS_HAT3Y;
|
i = ABS_HAT3Y;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (joystick->hwdata->abs_correct[i].used) {
|
if (joystick->hwdata->has_abs[i]) {
|
||||||
if (ioctl(joystick->hwdata->fd, EVIOCGABS(i), &absinfo) >= 0) {
|
if (ioctl(joystick->hwdata->fd, EVIOCGABS(i), &absinfo) >= 0) {
|
||||||
absinfo.value = AxisCorrect(joystick, i, absinfo.value);
|
absinfo.value = AxisCorrect(joystick, i, absinfo.value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user