In an effort to get my Wiimote working with Wind Waker in Dolphin, I became increasingly frustrated with all the terrible Glovepie Wiimote Scripts out there. Most of them map the nunchuck's analog stick to WASD and ignore necessary controls such as the C-Stick (which is necessary in wind waker). Additionally, the motion controls are usually tacked on using the default wiimote1.swinghorizontal, completely ignoring any vertical or horizontal swings. Lastly, the Spin Attack mapped to the Nunchuk (as in Twilight Princess) is usually ignored too.

I have fixed all of these problems (mostly). The script requires PPJoy and Glovepie and a Wiimote connected via Bluetooth. The controls are mapped to the second PPJoy controller and it MUST have 17 buttons enabled (16 is default) and 2 analog stick enabled at least.

There are a few problems. The sword is mapped to a wiimote waggle. This means any menus that you need to quit using "B" require you to waggle. It a minor issue, easy to ignore. One of the hardest parts to code was the spin attack. I loved how easy it was to do in Twilight Princess and I set out to match it. It doesn't quite come out perfect. First of all, if your sword is not drawn, the spin attack will be unsuccessful. Secondly if you have the analog stick pointed down or at a hard left and waggle the nunchuck to execute a spin attack, it likely won't work. This is because it is not yet context sensitive (although I may add this in the future). Lastly the C-Stick is mapped to the Wiimote's D-pad when you are holding down C on the nunchuck. Sometimes I forget to hold C down when using the Wind Waker. You will too, but its not that big a deal.

I'd love thoughts/changes. It wasn't hard to code, especially since I have never used Dolphin or GlovePie before.

Heres the script, you can figure out the mappings yourself. Lastly, when you run it, make sure only the 1st LED is on. If there are more or less than just the 1st one, it isnt working and you need to stop it and run it again. This is an issue with Glovepie, not my code. Remember it must be PPJoy joystick 2 and have 17 buttons enabled.