mirror of
https://github.com/yawut/SDL.git
synced 2026-07-29 22:48:48 -05:00
Fixed crash in joystick handling code. Newer 2.6 kernels add an additional 'resolution' field to input_absinfo. Note that we don't use that structure since we want to have enough space for the values even when building with an older kernel.
This commit is contained in:
parent
ba9b7bf6ff
commit
3fc0e26901
|
|
@ -701,7 +701,7 @@ EV_ConfigJoystick(SDL_Joystick * joystick, int fd)
|
|||
continue;
|
||||
}
|
||||
if (test_bit(i, absbit)) {
|
||||
int values[5];
|
||||
int values[6];
|
||||
|
||||
if (ioctl(fd, EVIOCGABS(i), values) < 0)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user