fix
Operate Your Computer with Wii Controllers
Posted by Kevin Purdy at 2:00 AM on August 30, 2008

Nintendo doesn't exactly advertise it, but the remotes for the Wii gaming console—including the balance board that comes with Wii Fit—have Bluetooth capabilities. That means you can connect your Wii peripherals to your computer to operate the media centre hooked up to your TV, play emulated games with a Nunchuk, Classic Controller, or even a Balance Board, and pretty much have them do anything you can do with a keyboard. Let's walk through linking up your Wii peripherals and putting them in control of your Mac, PC, or Linux box.
To give you an idea of what you can do with a Wii/PC hook-up, here's a look at one neat example: Controlling Windows Media Centre from a distance, without having to shell out for a separate remote control.
Do want? Let's get it set up.
Setting up Bluetooth in Windows
The first thing to do is ensure your computer or laptop has Bluetooth capabilities—if you don't see a Bluetooth icon in Windows' Control Panel, chances are it doesn't. If you still want to get in, you can often get a USB-connected Bluetooth dongle for very little cash ($5 and up). If you do have a Bluetooth receiver, make sure you're upgraded to the latest drivers—use Windows Update or check with your computer manufacturers' web site. Mac OS X and Linux users, you won't be using the same hook-ups or software, but we'll suggest some software that works similarly a bit further along.
Now to hook up your devices. We'll start with the basic Wii remote, or "Wiimote." There's only one way of doing it, but there are varying numbers of steps, depending on your software. If you've got software that can automatically seek out and hook up Bluetooth devices, start it up, hit 1 & 2 on the Wiimote, and you'll connect. If not, I recommend downloading a trial copy of BlueSoleil. The unregistered trial limits you to 2MB of file transfer between devices and the computer, but when you're just sending clicks and movements, that's a good amount of time—I haven't run out after a week's trial, so it might be 2MB per session. The unlocked copy is about $30 (19.95 in Euros).
You can also make do with Windows Vista's built-in Bluetooth software. Here's how you'll have to set up your device each time:
- Open up Windows' Bluetooth controls by right-clicking on a system tray icon or searching for it from the Start menu.
- Choose "Add" from the "Devices" tab. Hit the checkbox in the dialog that pops up saying your device is ready to be found.
- Before going further, hit the 1 & 2 buttons near the bottom of your remote. You'll have to either hold them down or hit them every 10 seconds or so until your remote is found.
Once Windows finds your controller, named something like RVL-CNT-01, double-click its icon to select it.- Choose the "No passkey" option on the next screen, hit the Next button, and keep holding or re-clicking until Windows says your device is installed and ready.
Setting up GlovePIE
Programmer Carl Kenner designed his GlovePIE app to manipulate his computer using a virtual reality glove, but it's expanded to take input from a whole bunch of devices, including Wii gear, and translate it into mouse and keyboard actions.
To get started, download the latest version of GlovePIE from Kenner's site. Unzip the GlovePIE folder out of the package, place it somewhere accessible (like the Program Files folder), make a shortcut to the GlovePIE application and run it. You'll see a white screen at first, with tabs for "Untitled" (the name of your script right now), GUI, and Variables. Click on "GUI" and let's get started.
You'll see two buttons near the top: Detect Output to Emulate, and Detect Input. Hit the "Output" key on the left, then click the left mouse button again; it'll catch your movement and highlight a "LeftButton" item. Click "Detect Input," then click the "A" button on your Wiimote. It should catch the click and show that you've hit the "A" button on "Wiimote 1."

If it doesn't, head to the "TroubleShooter" menu in the upper right, check the "Bluetooth Fix" option, and try again. If you're still not catching Wiimote signals, try re-pairing your device. Once you've got the mouse click and "A" button entered, hit "Apply," and feel free to try out a few more combinations—your arrow keys to the Wii's directional pad, the "Home" button to the Windows key, or whatever else. Now head back to the "Untitled" tab, and see the small script you've created simply by matching up key presses to Wii actions. Hit the "Run" button on GlovePIE, and your script starts working. Hit "Stop," and the mouse and keys take over.
GlovePIE can also catch input from an attached Nunchuk or Classic Controller. More importantly, though, it can sense movements in both the controller alone (velocity movement) and from a sensor bar. That's right—you can turn on your Wii and move the mouse using its sensor bar, or you can convert or build your own. It's not as hard as it might sound, given that the Wii's "sensor bar" is actually just a few strategically spaced LED lights in a plastic shell. Instructables has a few tutorials for DIY bars, as does MAKE magazine. You can even make your Wii sensor bar wireless with $8 in parts and no soldering required.
Luckily, GlovePIE enthusiasts have made a wealth of scripts available for some pretty clever Wiimote uses. A Google search might turn up one for a specific app you'd like to control from afar, but the gracious folks at the Wii Linux wiki have made a wealth of great ones available. To use one, just copy its code, paste it into GlovePIE, then save it from the File menu. Here's a few notable scripts to pique your interest:
- EDmouse Arrow-keys: Turns the Wiimote directional pad into a mouse, with a gradual increase in speed as you hold. Adjust the value after
var.velotopto increase the top speed, and add your left and right mouse buttons to A and B for full mouse control. - EDmouse IR or Carl's IR Mouse: Uses sensor bar/infrared movement to control the mouse. Each has its own strengths and quirks, but both do the job fine.
- Emulator scripts: There are scripts to turn your Wiimote into a classic NES controller on its side, to combine it with a Nunchuk or Classic Controller for SNES emulators, and many more scripts for emulators and specific games.
- Guitar Hero/Rock Band scripts: For playing the Guitar Hero clone Frets on Fire or using the guitar as a MIDI instrument.
- Windows Media Center and Xbox Media Center remotes: The XBMC controller uses the web server interface to select and play your stuff, while the Windows controller cleverly combines two control sets—hit "1" and you move through media, hit "2" to control what's currently playing (as shown in the video near the top).
What about the Balance Board?
Making the Balance Board control your computer is almost exactly the same process as with the Wiimote. You use the same Bluetooth software and setup, but where you'd hit the 1 and 2 buttons on the Wiimote to make it discoverable, you'll be hitting the tiny syncing nub inside the battery cover on the bottom of the Balance Board (pictured at right). Hitting it once should give you enough time to finish the sync in Vista (or OS X or Linux), but you can hit it a few times to keep it going. Once you're synced up, you can plug in scripts that use the balance board as gas pedals (as demonstrated by a Need for Speed fan), or surf the web with your feet using Firefox. There aren't a ton of great scripts for the complex device right now, but I wouldn't bet against seeing some soon—two German programmers, for example, have already found a way to surf Google Earth using their board.
Mac and Linux users
GlovePIE isn't available for Mac or Linux systems, although there's an open-source version getting attention. Luckily, there's more than one program that can map your Wii peripherals to input actions, and hooking up Bluetooth gear to Mac and Linux systems is likely easier than in Windows. Here are your best bets:
Mac OS X: Syncing your Wiimote to OS X (10.4 and higher) is a simple matter of activating your Mac's Bluetooth scanner, hitting the 1 and 2 buttons, and waiting for the link to be made.
Of all the apps that handle Wiimote input for a Mac, Remote Buddy has the most user-friendly interface for use and programming, but it's proprietary, paid software (19.99 in Euros). The free GlovePIE equivalent is DarwiinRemote, which features similar button-to-action mapping and support for sensor bar movement.
Linux:
Many modern distributions carry their own preferred Wii-interfacing tools in their repositories. Ubuntu, for example, offers the command line tool Wminput, amongst others. I used Wminput and this guide to control the Elisa media centre with a Wiimote, and it worked flawlessly—though it obviously required some terminal work.
Wminput is actually a re-packaging of the Cwiid project, the closest GlovePIE equivalent for Linux, offering a GUI for mapping controls, a testing panel, and open-ended functionality. The Ubuntu Forums have a good walk-through of setting up Cwiid on your system; do a little searching, and you'll likely find one for your own distro.
Your turn
It's easy to get started creating, combining, and modifying existing Wii-PC scripts to use the Wii's wireless devices for all kinds of neat/lazy purposes. What kind of control scripts have you found or made on your own? What clever uses can you find for the Wiimote and other peripherals on any platform? Tell us your clever creations in the comments.
Kevin Purdy, associate editor at Lifehacker, is definitely fitting some Chrono Trigger into this long weekend. His feature, Open Sourcery appears weekly on Lifehacker.

Comments (AU Comments · US Comments)
There are currently no AU comments for this post.
Kevin Purdy
Posted 2:25 AM 30/8/08
@-Hairball-: Never meant to imply this technique, or others like it, was "new," per se, but tried to offer a thorough guide on the simplest solution for the average computer user.
Kevin Purdy
-Hairball-
Posted 2:21 AM 30/8/08
Oh hey, the Black Keys.
Anyway, hooking your Wiimote up to your PC isn't exactly new. Ever heard of the HL2 Wiimote mod?
-Hairball-
Oscar Ayala
Posted 2:20 AM 30/8/08
ditto.
Oscar Ayala
codykniffen
Posted 2:05 AM 30/8/08
I applaud your musical choice selection.
codykniffen
balls187 upside yo head
Posted 2:43 AM 30/8/08
Now does anyone know of a remote/wiimote keyboard software to make entering URL's easier (like Opera for the Wii)
I used the Wiimote to play C&C4, and it was pretty good, but eventually went back to mouse and keyboard.
balls187 upside yo head
unruled
Posted 2:39 AM 30/8/08
I will need to do this, as I have lacked a proper remote for my pc forever.
unruled
chareverie
Posted 2:36 AM 30/8/08
Hehe clever!
chareverie
Merricat
Posted 2:36 AM 30/8/08
I still have to try this, as the bluetooth stack on my computer crashes everytime I try to sync a device with it. But there are instructions and a GlovePIE script for using the Wii Balance board + Wiimote with the music based racing game Audiosurf at this site [www.chardish.com]
Merricat
TheMurderer
Posted 2:31 AM 30/8/08
IT SEEMS SO SIMPLE!
Maybe... I... do it?
TheMurderer
takemetoyourtoaster
Posted 3:05 AM 30/8/08
I have been using the wiimote to control OSXBMC, its pretty awsome, I assigned b to back, A to foward, and a few other things
takemetoyourtoaster
tamoriel
Posted 2:55 AM 30/8/08
@tamoriel: Correction: WiinRemote was the software I ended up using instead of GlovePIE. I quoted it as "WiiMote" earlier.
tamoriel
Merricat
Posted 2:55 AM 30/8/08
@balls187 upside yo head: You want to find software that lets you enter text in the same manner as you do on the Internet Channel on the Wii, or you want something that makes typing easier in the Internet Channel?
For the first, go to your start button, pull up the Run prompt, and type in: charmap
For the second, get a usb keyboard and plug it into the usb port in the back of the wii.
Merricat
tamoriel
Posted 2:54 AM 30/8/08
I tried this on a Vista Ultimate x64 machine. Getting *any* Bluetooth stack to work on it was a nightmare:
BlueSoleil: Never got it to work. Can't comment.
Windows Native BT Stack: Found the device, but wouldn't get picked up by GlovePIE or WiiMote.
WIDCOMM: Version 5.x worked fine, as long as I used the Windows XP version for some reason. The Vista version wouldn't even install correctly. Version 6.x wouldn't install either.
I use this on my PC that's connected to the same TV the Wii is. If you decide to do this (it's awesome), turn the Wii off first. If you try to pair with the PC with the Wii on, it will pair with the Wii by default. Then turn the Wii on to use the lightbar. And yes... it does require you to re-pair each time. Good (bad?) news, though, is that it never shut off on its own like it did when paired with the Wii. Not sure why, but I went through two sets of batteries before I figured that out. =(
tamoriel
wonder6oy
Posted 3:37 AM 30/8/08
Unhappy with the scripts currently available at the time, I ended up writing up a little Wiimote script for Glovepie of my own a while back...
[www.wiili.org]
(for anyone who's interested)
It's actually quite fun to use when it works (COD4 / HL2 are great, for example), but I eventually stopped using it due to the number of games that were giving me a sluggish, laggy response not allowing the Golvepie input to get through quickly enough. Not to mention that even when you actually manage to find the right combination of BT adapter, driver, OS, it's still kind of a pain to connect on a daily basis.
I would love to see someone really approach this from a commercial level and make it easy.
wonder6oy
-Hairball-
Posted 3:35 AM 30/8/08
@Kevin Purdy: You should include links to things like the HL2 and Crysis wiimote mods.
-Hairball-
fuzzymuffins
Posted 3:30 AM 30/8/08
GlovePIE is very versatile.
for that matter, play Frets On Fire (an open source Guitar Hero clone) with your Wii Guitar Hero Controller !!!
FOF claims to be able to import GH PS2 games but it never worked for me :(
[fretsonfire.sourceforge.net]
fuzzymuffins
Navin R Johnson
Posted 3:30 AM 30/8/08
Black Keys friggin ROCK!
Navin R Johnson
Buddha916
Posted 4:04 AM 30/8/08
@jtimberman: you mean the one that requires line of site connectivity?
BT connectivity would be much better.
As in i have the BT remote for my PS3 and dont need to open the cabinet door it resides behind to turn on the unit and control it.
Buddha916
balls187 upside yo head
Posted 3:48 AM 30/8/08
@Merricat: The first, and charmap is a horrible option.
I'd prefer something that is optimized for internet (uses predictive text, has .com, www., etc built in).
balls187 upside yo head
jtimberman
Posted 3:43 AM 30/8/08
It's a pretty neat trick, but I think I'll continue to use my Universal Remote for controlling media center.
As for video games, the ones I want to play with the Wii Remote are all on my Wii already. Games I want to play on the computer are best suited to mouse and keyboard.
jtimberman
Merricat
Posted 4:15 AM 30/8/08
@balls187 upside yo head: How about Microsoft's on screen keyboard. [www.microsoft.com] ?
As far as predictive goes, what you are looking for on the PC is avaliable and aimed for the accessiblity market. Meaning it costs money. If you are really interested past that point try looking at something like [www.orin.com]
Merricat
eternaluxe
Posted 4:49 AM 30/8/08
Linux 'predictive' OSK: [www.inference.phy.cam.ac.uk]
Not perfect, but pretty neat, none the less.
Found it while I was setting this up for my linux box a few weeks ago.
I didn't hack my Sensor bar to be wireless, but I did wire it though a switch and led to a RadioShak 1.5-12V 1000mA wall wart adapter (Catalog #: 273-029).
Have it set at 9V and can switch it on or off whenever I want to use it.
eternaluxe
davisr
Posted 4:43 AM 30/8/08
Lifehacker, you're just getting around to this now? This has been out for a LONG time.
davisr
Talryyn
Posted 5:28 AM 30/8/08
I thought there was a tutorial on how to use this in XNA as well? I ran across it a few weeks ago.
Talryyn
Merricat
Posted 5:56 AM 30/8/08
@eternaluxe: Dasher looks cool, thanks for the link!
Merricat
PunkMunkey
Posted 6:56 AM 30/8/08
Geez I love the Wii. It's the gift that keeps on giving!
PunkMunkey
Hyperlite
Posted 8:02 AM 30/8/08
The Black Keys are amazing!!
Hyperlite
burnblue
Posted 9:01 AM 30/8/08
Using only the Bluetooth software already on the computer, you can add the device as shown in this tutorial but I could never get it "connected" to work properly with WiinRemote, etc because the remote doesn't use a passkey. BlueSoleil works perfectly, but cut out after about 4 minutes of me moving my mouse cursor with a sensor bar. Does anyone know of free Bluetooth Software that can make this work properly since BlueSOleil has these limitations?
burnblue
Tarv
Posted 8:49 AM 30/8/08
Always wanted to have this as my HTPC control method. Tried it, and it does work great! Unfortunately, being unable to pair the device is a deal breaker.
Tarv
soggy_cheerio
Posted 2:50 PM 30/8/08
I actually use it to control my cable provider's DVR through its firewire interface. Wiimote -BT-> PC -1394-> DVR
I've also got a couple of long term robotics projects in which I plan on using the wiimote.
And, for those of the .Net ilk...
.Net managed Wiimote library
soggy_cheerio
eternaluxe
Posted 2:58 PM 30/8/08
@Tarv: You can pair it. Just can't have the Wii on at the same time or it will steal it.
On linux (ubuntu (debian/gnome)) in this case: [ubuntuforums.org]
Scroll down to 'Using your Wii remote for watching DVDs, Elisa media center, etc:-'
Set it up to run on login.
@Merricat: No problem. I'm not using it a present, but the ability to create dictionaries for it would be sweet for web browsing. Not quite auto complete, but a www could always lead to a . and a . could be weighted towards com/net/org/ca/nz/au/co.uk/etc
It's not the prettiest input method, I'll admit, but play with it for a few (there is a java applet sample on the site) and you'll soon realize how great the idea is. Using it for a HTPC because you don't want to drop $ on _more_ hardware isn't exactly the audience they're going for. Still, these guys deserve credit.
eternaluxe
elgilicious
Posted 7:25 AM 31/8/08
I dabbled with Cwiid on my Ubuntu machine and found it hard to move the cursor; I would always be a couple pixels off from my target.
I prefer to use Touchpad, a free third-party app for my iPod Touch. It's VNC in the palm of your hand and operates like a wireless mouse.
elgilicious
nitzua
Posted 12:24 AM 1/9/08
EXCELLENT music being listened to in that picture.
nitzua
serotoninzero
Posted 4:56 AM 2/9/08
I use my wiimote on my pc a lot. Actually, before I had a wii, I bought my own wiimote just to mess with it. For a while I had two wiimotes always setup with a script I wrote. One controlled winamp, the other controlled VLC, both worked as controllers on ZSNES when the classic was plugged into them. I've been playing titan quest with my girl lately, and my friend came over to join us, so I gave him my monitor, hooked my comp up to my plasma, programmed my wiimote to get rid of the keyboard and hooked up my wacom tablet, and I had a cool and different way to play Titan Quest on the couch.
serotoninzero
Matthew
Posted 3:58 AM 31/8/08
Mac users: use Wiiji -- it's free, stable and works great with MAME OS X.
Matthew
Ins3rtNam3h3r3
Posted 3:07 AM 30/8/08
I controlled a robot.
[www.break.com]
Ins3rtNam3h3r3