|
From: Tim R. <ti...@pr...> - 2013-11-07 21:52:24
|
Jian Lu wrote: > I'm a student working on libusb. I'm using the libusb 0.1, the old > version. There's really no reason to do that at this point. The newer version is much better. However, if you're working with a HID device (keyboard), you might be happier with libhid. What operating system are you using? > I'm trying to get a simple code that I can read the input from > a keyboard. I tried to use usb_interrrupt_read(), but I always got an > error code of -22 or -16. > Could you please help me out? We can't do a thing without seeing your code. The operating system automatically loads a driver for HID devices. Did you disconnect that before you tried to claim the device? The -16 error is EBUSY, which implies that you did not. -- Tim Roberts, ti...@pr... Providenza & Boekelheide, Inc. |