vkapadia has posed several scripts for
GlovePIE, a Windows program which lets you use the Wii-Mote as your mouse, or to control games on your PC. You will need to successfully connect the WiiMote to your PC using a compatible bluetooth adapter first. Once you have GlovePIE and the wii-mote successfully connected, download one of the following scripts (right click and save-as) and then load it into GlovePIE.
Scripts for using the Wiimote in Windows with GlovePIE:
WiiMouse IR
Point with your Wiimote and click! REQUIRES SENSOR BAR
Chances are, this is the one you want.
WiiMouse Accel
Tilt and rotate the Wiimote to control the mouse.
WiiMouse IR Relative
Moves the mouse based on the Wiimote's position relative to the center of the screen.
Two WiiMice
Connect two Wiimotes to control two mice. REQUIRES SENSOR BAR
WiiMouse IR Odd Bar
Before version .24, some sensor bars were not functioning properly. REQUIRES SENSOR BAR
Generic Joystick Driver
This uses the tilt/rotate as two axes, and all 11 buttons to emulate a joystick. REQUIRES PPJOY
Nintendo 64 Emulator - Ocarina of Time
A little awkward, but not too bad.
Nintendo 64 Emulator - Goldeneye (basic)
All buttons are digital in this script.
Nintendo 64 Emulator - Goldeneye (advanced)
In this, there is analog control support.
Nintendo Entertainment System Emulator
Basic controls for an NES emulator. Turn the Wiimote sideways for this one.