Hi, I am encountering some issues with libusb. I was trying to read input from my keyboard, and came across libusb_bulk_transfer(). I wrote a simple prgram that loops through every device attached to my computer and when it finds the correct one (Product ID: 0x203) opens an handle and tries to call libusb_bulk_transfer().
Here is a copy/paste of my code: http://pastebin.com/qjtugkuR
Error in output:

The problem is that libusb_bulk_transfer() absolutely refuses to work, by throwing a -5 error code, aka LIBUSB_ERROR_NOT_FOUND. I have tried to use it in different ways, but the error is always there. Even tried on a different computer! Also tried running it in privileged mode with sudo and with different keyboards.
I am using OS X, on both my machines. Is this a libusb problem or am I doing something wrong?
Hi, I am encountering some issues with libusb. I was trying to read input from my keyboard, and came across
libusb_bulk_transfer(). I wrote a simple prgram that loops through every device attached to my computer and when it finds the correct one (Product ID: 0x203) opens an handle and tries to calllibusb_bulk_transfer().Here is a copy/paste of my code: http://pastebin.com/qjtugkuR
Error in output:

The problem is that
libusb_bulk_transfer()absolutely refuses to work, by throwing a-5error code, akaLIBUSB_ERROR_NOT_FOUND. I have tried to use it in different ways, but the error is always there. Even tried on a different computer! Also tried running it in privileged mode withsudoand with different keyboards.I am using OS X, on both my machines. Is this a
libusbproblem or am I doing something wrong?