Flafla2 / Unity-Wiimote

An easy to use interface between Unity3D / C# and a Wii Remote controller.
MIT License
329 stars 73 forks source link

wii remote plus #61

Open everyone-else-stole-the-good-usernames opened 5 years ago

everyone-else-stole-the-good-usernames commented 5 years ago

All buttons are recognised but this does not recognise the wii remote plus's built in wii motion plus

JulesDeslandes commented 4 years ago

Same issue here

thebitmaster commented 8 months ago

Thanks for all the hard work on this! Although I've gotten almost every other feature to work, the API will not detect a known-good Wiimotion Plus plugged into the Wiimote. I've tested it with other libraries to make sure it's working, and it is, but all my attempts to identify or activate it have failed. For instance:

` bool activated = false; remote.RequestIdentifyWiiMotionPlus(); //remote.SendStatusInfoRequest(); // Requests Status Report

Console.WriteLine("remote.current_ext " + remote.current_ext); Console.WriteLine("remote.ext_connected " + remote.Status.ext_connected); Console.WriteLine("remote.wmp_attached " + remote.wmp_attached); if (!activated && remote.wmp_attached) { remote.ActivateWiiMotionPlus(); activated = true; Console.WriteLine("Activated WiiMotionPlus!"); Console.WriteLine("WiiMote Type :" + remote.MotionPlus.ExtensionConnected);

} else Console.WriteLine("No WiiMotion Plus Detected!"); if (activated && remote.current_ext == ExtensionController.MOTIONPLUS) { MotionPlusData data = remote.MotionPlus; // data! float dPitch = data.PitchSpeed; Console.WriteLine("PitchSpeed is " + dPitch); // Use the data... } Yields: remote.current_ext NONE remote.ext_connected False remote.wmp_attached False No WiiMotion Plus Detected! NONE Is Wii Motion Plus Attached? False`