BrianPeek.com
A Compendium of Random Uselessness

Reply to: Re: Wiimote not found

Write your reply below. Click the "Post" button to submit your message.
Brian Peek wrote the following post at Sun, Sep 2 2007 5:02 PM:

This is the joy of Bluetooth.  The Wiimote is a Bluetooth device, but it was only ever intended to connect to a Wii.  So, it's not necessarily 100% standard.  When connected to Windows, on top of the Wiimote's lack of standards, we have the lack of Bluetooth standards.  Each stack installs devices and interacts with them in a different way.

The only way to connect to the device in a generic way is to use the HID stuff since the Wiimote shows up as a HID device.

So.  In terms of making it more robust, I don't know of any way in which to do that.  The HID calls are going to show any device which the HID layer says is available.  The code runs through all of those devices and compares the vendor ID and product ID to the Wiimote's.  If they don't match, it's either because a) it's not a Wiimote, or b) the Bluetooth stack didn't install the device properly.

Can you trace through the code and see  how many devices are found and what the detail path is for each?  You should automatically get that in the output window if you're running from the IDE.

Quote
 
Description:    

: