Jimbo
Member!
Could it be true? A Wiimote working on the pc? I didn't believe this at first, but it's true. In my opinion, this is just another reason to buy the wii =D. Anyway, here is the story. Enjoy.
And some videos for you to enjoy of this awsomeness
http://www.youtube.com/watch?v=-daUQD8iojo
http://www.youtube.com/watch?v=asY_I8y6C0M
-Credits to liquidice for this guide and Carl Kenner for making this awsome program.
Also, there are lots of other scripts, wich you can find hereOK, here is how I was able to use the Wii-Mote in Windows using a program called GlovePIE by Carl Kenner.
You need a Wii-Mote, and a Bluetooth Adapter for your PC. This DOES NOT work with the Microsoft Bluetooth Stack. You must download another one to get it working. I have successfully gotten it to work with the BlueSolei drivers, but they are only a trial and have expired on me. For a list of other Wii compatible Bluetooth Adapters check out the WiiBrew Wiki.
If you need a new BT driver you can try to DL the trial version of BlueSolei Drivers here
Once your BT is setup and you can successfully see the Nintendo RVL-CNT device in your bluetooth manager, connect to it's HID service. It may also say (keyboard, mouse, joystick). You will need to hold down the 1 and 2 buttons on the wii-mote to put it into discovery mode. While the LED's are blinking do a discover on your computer and it should find the nintendo rvl-cnt device. If the lights go off during the process, press 1 & 2 down again, or hold them during the entire connecting process.
After you have that connected you are ready to download GlovePIE from here:
http://carl.kenner.googlepages.com/glovepie_download
Extract it and run the EXE. Then goto File->Open
and open the file named TestWiimote.PIE
Press run and you should see the number in the debug window move as you rotate the remote. If this is working on to the next step. If it does not work, and it is stuck at -127 your bluetooth driver is not compatible, or it is not successfully connected to the wii-mote.
If your getting numbers you can now try to emulate a mouse. Start a new GlovePIE script and paste this script in there, courtesy of BlackFrog and other members of the WiiLi Forums:
Code:// Show wiimote forces debug = "X="+Wiimote.RawForceX+' Y='+Wiimote.RawForceY+' Z='+Wiimote.RawForceZ if wiimote.Up then Mouse.WheelUp = true wait 120 ms Mouse.WheelUp = false endif if wiimote.Down then Mouse.WheelDown = true wait 120 ms Mouse.WheelDown = false endif if wiimote.Left then Mouse.WheelLeft = true wait 120 ms Mouse.WheelLeft = false endif if wiimote.Right then Mouse.WheelRight = true wait 120 ms Mouse.WheelRight = false endif Mouse.RightButton = Wiimote.A Mouse.LeftButton = Wiimote.B Mouse.MiddleButton = Wiimote.Home if Wiimote.Plus then if var.osk= false then Execute("osk") var.osk = true wait 300 ms endif endif if Wiimote.Minus then if var.osk = true then ExitProgram wait 300 ms var.osk= false endif endif if wiimote.one then wiimote.leds = wiimote.leds + 1 if(wiimote.Leds>15) wiimote.Leds=15 endif wait 120 ms endif if wiimote.two then wiimote.leds = wiimote.leds - 1 if(wiimote.Leds<0)> wiimote.leds = 0 endif wait 120 ms endif // set these to the offsets when the wiimote is at rest // will be different for each wiimote most likely var.x = Wiimote.RawForceX +12 //trim to 0 var.y = Wiimote.RawForceY -37 // trim to 0 var.z = Wiimote.RawForceZ +12 //trim to 0 //precision var.sense0 = 500 var.thresh0x = 5 var.thresh0y = 2 var.sense = 300 var.threshx = 10 var.threshy = 5 var.sense2 = 100 var.thresh2x = 15 var.thresh2y = 8 var.sense3 = 50 var.thresh3x = 20 var.thresh3y = 12 //first sensitivity setting //xaxis if var.x > var.thresh0x mouse.x = mouse.x - 1/var.sense0 endif if var.x < -var.thresh0x mouse.x = mouse.x + 1/var.sense0 endif //yaxis if var.z > var.thresh0y mouse.y = mouse.y - 1/var.sense0 endif if var.z < -var.thresh0y mouse.y = mouse.y + 1/var.sense0 endif //second sensitivity setting //xaxis if var.x > var.threshx mouse.x = mouse.x - 1/var.sense endif if var.x < -var.threshx mouse.x = mouse.x + 1/var.sense endif //yaxis if var.z > var.threshy mouse.y = mouse.y - 1/var.sense endif if var.z < -var.threshy mouse.y = mouse.y + 1/var.sense endif //third sensitivity setting //xaxis if var.x > var.thresh2x mouse.x = mouse.x - 1/var.sense2 endif if var.x < -var.thresh2x mouse.x = mouse.x + 1/var.sense2 endif //yaxis if var.z > var.thresh2y mouse.y = mouse.y - 1/var.sense2 endif if var.z < -var.thresh2y mouse.y = mouse.y + 1/var.sense2 endif //fourth sensitivity setting //xaxis if var.x > var.thresh3x mouse.x = mouse.x - 1/var.sense3 endif if var.x < -var.thresh3x mouse.x = mouse.x + 1/var.sense3 endif //yaxis if var.z > var.thresh3y mouse.y = mouse.y - 1/var.sense3 endif if var.z < -var.thresh3y mouse.y = mouse.y + 1/var.sense3 endif
And some videos for you to enjoy of this awsomeness
http://www.youtube.com/watch?v=-daUQD8iojo
http://www.youtube.com/watch?v=asY_I8y6C0M
-Credits to liquidice for this guide and Carl Kenner for making this awsome program.