changeset 5087:e7680e2c9f3c

Fixed compile error
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Jan 2011 15:10:16 -0800
parents ac2c68eb1bb9
children c2539ff054c8
files src/joystick/linux/SDL_sysjoystick.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);