|
From: Xiaofan C. <xia...@gm...> - 2007-08-14 06:00:43
|
On 8/14/07, Carl Kenner <car...@gm...> wrote: > By the way, when I am using the Device Driver, there is another > problem I am having. Interrupt reads are always failing. So I end up > using the GetInputReport via usb control messages as workaround. > Maybe you forget the direction bit for the IN endpoint (0x81 instead of 0x01) for your interrupt read. This is one difference compare to Linux libusb. For reading feature request for the HID joystick, HID faq page mentions the following workarond. [quote] "Why do I receive "Access denied" when attempting to access my HID? Windows 2000 and Windows XP have exclusive read/write access to HIDs that are configured as a system keyboards or mice. An application can obtain a handle to a system keyboard or mouse by not requesting READ or WRITE access with CreateFile. Communications can then use HidD_SetFeature and HidD_GetFeature (assuming the device supports Feature reports)." [/quote] Regards, Xiaofan |