Fixed compile error

This commit is contained in:
Sam Lantinga 2011-01-24 15:10:16 -08:00
parent c330005880
commit b33881a48e

View file

@ -703,7 +703,7 @@ EV_ConfigJoystick(SDL_Joystick * joystick, int fd)
if (test_bit(i, absbit)) {
struct input_absinfo absinfo;
if (ioctl(fd, EVIOCGABS(i), values) < 0)
if (ioctl(fd, EVIOCGABS(i), &absinfo) < 0)
continue;
#ifdef DEBUG_INPUT_EVENTS
printf("Joystick has absolute axis: %x\n", i);