------- Comment #8 From Sergey Svishchev 2006-03-19 12:35 [reply] -------
I've made a similar patch to BSD-specific USB driver, please review it too. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401563
This commit is contained in:
parent
4c3dfbcfe8
commit
625655e271
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue