Fixed compile error

This commit is contained in:
Sam Lantinga
2011-01-24 15:10:16 -08:00
parent 294c77d54e
commit 5bb9535909

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