Skip to main content
GameDev.net gamedev.net
🔒 Locked

HidD_GetAttributes?

Started by Hirocon Jun 18, 2007 at 9:25 PM 0 replies 2.5k views
Original Post
Hirocon
Hirocon
I'm using the code linked from http://simulatedcomicproduct.com/2006/12/cwiimote-02.php to try to interact with a Wii remote in C++. I have the wiimote connected to the PC through the windows stack, and I know it is connected successfully because I can interact with it using the GUI linked from http://code.google.com/p/wiimote-api/. The code I downloaded compiles and runs without crashing, but I can't connect to the wiimote. The code appears to fail on a call to HidD_GetAttributes, which should return a non-zero value but returns false. I can't find much helpful documentation on this function anywhere, and I'm not sure exactly what it is supposed to do. The code where this function is called seems to try to loop through a bunch of devices looking for one that matches the profile of a wiimote, but the call to HidD_GetAttributes returns false the first time, as if it can't find any devices at all. Please help. What exactly does HidD_GetAttributes do, and why would it return false? Edit: I'm using Windows XP Professional with service pack 2, and I compiled the code through Visual Studio 2005 Express.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.