Commit a9012609 authored by Sam Lantinga's avatar Sam Lantinga

Fixed crash in joystick handling code. Newer 2.6 kernels add an additional...

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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404339
parent b634dea3
...@@ -701,7 +701,7 @@ EV_ConfigJoystick(SDL_Joystick * joystick, int fd) ...@@ -701,7 +701,7 @@ EV_ConfigJoystick(SDL_Joystick * joystick, int fd)
continue; continue;
} }
if (test_bit(i, absbit)) { if (test_bit(i, absbit)) {
int values[5]; int values[6];
if (ioctl(fd, EVIOCGABS(i), values) < 0) if (ioctl(fd, EVIOCGABS(i), values) < 0)
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment