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");