mirror of
https://github.com/yawut/SDL.git
synced 2026-08-15 05:26:39 -05:00
Fixed compile error
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user