|
From: Carl K. <car...@gm...> - 2007-08-14 13:35:46
|
I can't use HID as a backend, because the windows HID isn't working. Presumably because the SIXAXIS uses a malformed HID descriptor, and it won't let me read this feature report. I'm reasonably confident the device isn't a keyboard or mouse, it seems to just be a HID joystick or gamepad. Reading the same feature report with libusb is easy. Once I have read this feature report, the device will start sending input reports to the computer, but before that it won't. Now all the other sixaxis drivers for windows use the libusb filter driver to read this one feature report, while windows still sees it as a gamepad. So it must work on some computers. But it doesn't work on the computers I tested it on. On 14/08/07, Xiaofan Chen <xia...@gm...> wrote: > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > |