Had this idea toiling around in my head for a while, then spoon made his script to get a PS2 controller to work for poker, so that made me want to do the wiimote.

Basically, the wiimote can connect to your PC via a bluetooth dongle. From there it behaves essentially like a bluetooth keyboard. Note -- only certain bluetooth dongles/drivers will work with the wiimote. The one I'm using was about ~25 from Walmart. Its an HP something-or-other.

So to make this work all I had to do was use a program called glovepie which interprets keypresses on the wiimote and turns them into keypresses on the keyboard (it also does way cooler stuff than just that -- you can also get the data from the accelerometers and the infrared camera -- but I see no need for those in this application). From there, we use AHK to turn those keypresses into actions.

I wanted this to be usable in one hand, and the easiest method I found was the following:

When a table pops up, the mouse will default on top of the fold button. Using left and right d-pad will move the mouse between raise/call/fold. The B button (aka the trigger) acts like a left-click, used to confirm raise/call/fold.

Betpot script controls betsizing:
The A button on the wiimote emulates a right-click on the mouse.
Up and Down D-Pad emulates the scroll wheel.

And thats pretty much it. Has a few more features (home button resets mouse position over the fold button in case it wanders off for some reason or another, and the "2" button acts as an enter key to take seats, and the "1" button checks/unchecks autopost blinds)

My host seems to have crashed, so I'll post the actual files tomorrow.

Much thanks to spoonitnow for his AHK help :]