Commit b33881a4 authored by Sam Lantinga's avatar Sam Lantinga

Fixed compile error

parent c3300058
...@@ -703,7 +703,7 @@ EV_ConfigJoystick(SDL_Joystick * joystick, int fd) ...@@ -703,7 +703,7 @@ EV_ConfigJoystick(SDL_Joystick * joystick, int fd)
if (test_bit(i, absbit)) { if (test_bit(i, absbit)) {
struct input_absinfo absinfo; struct input_absinfo absinfo;
if (ioctl(fd, EVIOCGABS(i), values) < 0) if (ioctl(fd, EVIOCGABS(i), &absinfo) < 0)
continue; continue;
#ifdef DEBUG_INPUT_EVENTS #ifdef DEBUG_INPUT_EVENTS
printf("Joystick has absolute axis: %x\n", i); printf("Joystick has absolute axis: %x\n", i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment