IMPORTANT! You need to use the program Glovepie, which you can download for free here: https://web.archive.org/web/20130208185205/http://glovepie.org/GlovePIE045Free.zip This also requires that your computer has bluetooth. Instructions: 1)Unzip the zip file to a folder somewhere you'll be able to locate on your computer, then run PIEFree.exe. 2)Insert this script into glovepie: http://pastebin.com/T5NiKWGt 3)Click run 4)Find the bluetooth icon in the bottom right corner of the screen(you might have to click the little arrow) 5)Right click the icon and choose "add a device" 6)Hold down 1 and 2 on the remote, and click on the device that appears on the computer. 7)Click "Pair without using a code" 8)Wait a little and you should be done!
If you already have used GlovePie before, just use this script: http://pastebin.com/T5NiKWGt If the motion sensing seems to be off, shake the Wii remote, this should make it correct. Press space to stop the GlovePie script temporarily Press A on the Wii remote to play a demonstration game: DPad to move the scratch cat, and swing the Wii remote to use the sword gx, gy and gz, is how much gravitational pull there is in each direction, for example if you lay the wii remote with the buttons facing down, gy should be -1. ry, rz and rx is how many degrees the Wii remote is turned, with the negative end of each axis pointing towards you. (These are calculated based on gx, gy and gz, so if you're making a game, it would be better to use gx, gy and gz) shakiness, is how much the Wii remote is being shaken: 0.0 = The Wii remote is laying flat on a table 0.1 = The Wii remote is being held 0.3 = The Wii remote is being shaken a little 0.7 = The Wii remote is being shaken 1.0 = The Wii remote is being shaken a lot