Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 24, 2011
1 parent 37912eb commit 3983bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/linux/SDL_sysjoystick.c
Expand Up @@ -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);
Expand Down

0 comments on commit 3983bbd

Please sign in to comment.