comparison src/joystick/bsd/SDL_sysjoystick.c @ 1559:e7f61857028a

------- 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.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 20 Mar 2006 08:00:07 +0000
parents d910939febfa
children 57431b199aed
comparison
equal deleted inserted replaced
1558:b46bb79cc197 1559:e7f61857028a
270 strerror(errno)); 270 strerror(errno));
271 goto usberr; 271 goto usberr;
272 } 272 }
273 273
274 rep = &hw->inreport; 274 rep = &hw->inreport;
275 rep->rid = 0; 275 if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) {
276 rep->rid = -1; /* XXX */
277 }
276 if (report_alloc(rep, hw->repdesc, REPORT_INPUT) < 0) { 278 if (report_alloc(rep, hw->repdesc, REPORT_INPUT) < 0) {
277 goto usberr; 279 goto usberr;
278 } 280 }
279 if (rep->size <= 0) { 281 if (rep->size <= 0) {
280 SDL_SetError("%s: Input report descriptor has invalid length", 282 SDL_SetError("%s: Input report descriptor has invalid length",