Commit 625655e2 authored by Sam Lantinga's avatar Sam Lantinga

------- 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
parent 4c3dfbcf
......@@ -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;
}
......
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