Skip to content

Commit

Permalink
------- Comment #8 From Sergey Svishchev 2006-03-19 12:35 [reply] --…
Browse files Browse the repository at this point in the history
…-----

I've made a similar patch to BSD-specific USB driver, please review it too.
  • Loading branch information
slouken committed Mar 20, 2006
1 parent 7cbef89 commit db57a98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/joystick/bsd/SDL_sysjoystick.c
Expand Up @@ -272,7 +272,9 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy)
}

rep = &hw->inreport;
rep->rid = 0;
if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) {
rep->rid = -1; /* XXX */
}
if (report_alloc(rep, hw->repdesc, REPORT_INPUT) < 0) {
goto usberr;
}
Expand Down

0 comments on commit db57a98

Please sign in to comment.