Fixed compile error
authorSam Lantinga <slouken@libsdl.org>
Mon, 24 Jan 2011 15:10:16 -0800
changeset 5085 e7680e2c9f3c
parent 5084 ac2c68eb1bb9
child 5086 c2539ff054c8
Fixed compile error
src/joystick/linux/SDL_sysjoystick.c
--- a/src/joystick/linux/SDL_sysjoystick.c	Mon Jan 24 14:36:12 2011 -0800
+++ b/src/joystick/linux/SDL_sysjoystick.c	Mon Jan 24 15:10:16 2011 -0800
@@ -703,7 +703,7 @@
             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);