------- 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:
Sam Lantinga 2006-03-20 08:00:07 +00:00
parent 4c3dfbcfe8
commit 625655e271

View file

@ -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;
}