Hello. I am writing a libusb program to interact with a usb gamepad. I found it, opened it, detached from kernel, claimed interface, and when I try to usb_interrupt_read it returns -110 (resource temporarily unavailable) what is doing on? also, usb_set_configuration fails, so I commented it out. do I need it?
Why isn't it reading?
i = usb_interrupt_read(handle, 0x81, bytes, 8, 50);
printf("%d read\n", i);
perror("read");