Mercurial > sdl-ios-xcode
comparison src/joystick/linux/SDL_sysjoystick.c @ 5087:e7680e2c9f3c
Fixed compile error
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Jan 2011 15:10:16 -0800 |
parents | ac2c68eb1bb9 |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
5086:ac2c68eb1bb9 | 5087:e7680e2c9f3c |
---|---|
701 continue; | 701 continue; |
702 } | 702 } |
703 if (test_bit(i, absbit)) { | 703 if (test_bit(i, absbit)) { |
704 struct input_absinfo absinfo; | 704 struct input_absinfo absinfo; |
705 | 705 |
706 if (ioctl(fd, EVIOCGABS(i), values) < 0) | 706 if (ioctl(fd, EVIOCGABS(i), &absinfo) < 0) |
707 continue; | 707 continue; |
708 #ifdef DEBUG_INPUT_EVENTS | 708 #ifdef DEBUG_INPUT_EVENTS |
709 printf("Joystick has absolute axis: %x\n", i); | 709 printf("Joystick has absolute axis: %x\n", i); |
710 printf("Values = { %d, %d, %d, %d, %d }\n", | 710 printf("Values = { %d, %d, %d, %d, %d }\n", |
711 absinfo.value, absinfo.minimum, absinfo.maximum, | 711 absinfo.value, absinfo.minimum, absinfo.maximum, |