This is a guide on how to use your Wiimote as a controller for your computer. It's a really cool way to control your computer, and it's really easy to do.(Mac users have an entirely different, and easier method that I will detail when I get a Macbook Pro in June.)
What you'll need:
-Bluetooth of some sort (either built-in, or a dongle/card; I got a Motorola WIDCOMM dongle for $20 at Radioshack)
-A Wiimote, a Nunchaku attachment (optional), Classic Controller attachment (optional)
-Get GlovePIE, a controller scripting program that lets you script interface devices
Okay, here wee go.
1. (if you already have Bluetooth of some sorts, skip to step 2) Install your Bluetooth card/dongle using the packaged drivers, following the instructions. If you're using a dongle, plug it in now.
2. Go to your Bluetooth setup wizard (I'm using a Motorola dongle, and I don't know if it's different for other manufacturers.). Choose the option to find a device and configure it yourself. As it begins searching, hold the 1 and 2 buttons on the Wiimote so the blue lights at the bottom start to flash and it goes into Discoverable mode. It should show up on the list.
3. Keep pressing the 1 and 2 buttons to keep it available. Skip pairing, then click Finish once you see a checkbox with "Human Interface Device" or something similar selected. Congratulations, your Wiimote is now synced to your computer!
4. The only problem is that the buttons do nothing. This is where GlovePIE comes in handy. Open the program, and you should see a text=entry area, along with a RUN button at the top. The text entry area is where you write scripts to translate Wiimote functions, such as tilting and button presses, into PC functions, like mouse movement, clicking, and keyboard presses. Now, I'm still learning, so I really can't do stuff like tilting and analog attachment functions too well, and I'm not gonna pretend like I can. But button/keyboard translation couldn't be easier. All you do is write a script like this:
What this does is makes it so that every time you press up on the Wiimote D-pad, it registers like you just pressed W on the keyboard, and if you press up and B, it registers that you pushed Space. You can do much more complicated things, like map analog stick movements to keys or combinations of keys using the analog attachment, or use the Classic Controller in all this too. GlovePIE sorta walks you through it to a certain extent, so you'll get the hang of it.
Here's a script I wrote for Audiosurf, that I'm currently working on improving with tilt control, but for now it's just button presses
I have been playing Audiosurf using this, and honestly, I can't go back to using the keyboard or mouse. :D
5. Now that you've written a good script, test it out!
Anyway, I hope this helps, and here are some of my scripts just to get you started
Spoiler for N controller:
Code:
//N Controller v 0.1- By MetalGear08
//Hold like an Nes Controller
key.Left = Wiimote.Up //Move left
key.Right = Wiimote.Down //Move right
key.Shift = Wiimote.Two //Jump
key.q = Wiimote.Home //Quit
key.k = Wiimote.Minus //Kill self
key.Space = Wiimote.One //start game or unpause
Key.P = Wiimote.One //Pause during the game
key.Tab = Wiimote.Plus //Boss mode
Spoiler for Cool Ocarina of Time script I found:
This script makes it so that Ocarina of Time in your emulator has Twilight Princess style controls. Really cool in my opinion :D
Code:
/* Zelda: Ocarina of Time with Nunchuk - BMH version 1.0.
Written by BMH (based on Kunal Khiyani & vkapadia scripts)
*/
//
// Set your emulator to these values:
// Analog Stick = Up, Down, Left, and Right Arrow Keys
// Start = S
// Z-Button = z
// R-Button = r
// A-Button = a
// B-Button = b
// L-Button = l
// C-Up = NUMPAD8
// C-Down = NUMPAD5
// C-Left = NUMPAD4
// C-Right = NUMPAD6
//
//
// CONTROLS:
//
// Wiimote:
//
// Shake the wiimote = use sword
// D-pad = C buttons
// A = A (blue button/ context sensitive button)
// B trigger = Use shield
// Minus = Green button (skip text/navigate through menus)
// Home = Nothing
// Plus = Start (/red button in menus)
// 1 = Start
// 2 = Show/hide map
//
// Nunchuk:
//
// Shake the nunchuk = spin attack
// Analoge stick = movement
// C = first person view/talk to navi
// Z = Z-targeting
// Nunchuk movement:
if 2 > Wiimote1.Nunchuk.JoyX > 0.5 then
Right = true
wait 60 ms
Right = false
endif
if -2 < Wiimote1.Nunchuk.JoyX < -0.5 then
left = true
wait 60 ms
left = false
endif
if 2 > Wiimote1.Nunchuk.JoyY > 0.5 then
down = true
wait 60 ms
down = false
endif
if -2 < Wiimote1.Nunchuk.JoyY < -0.5 then
up = true
wait 60 ms
up = false
endif
// Spin attack (needs work/Fail rate is too high)
if (wiimote.Nunchuk.RawAccX > 20) then
up = true
wait 10 ms
left = true
wait 10 ms
up = false
wait 10 ms
down = true
wait 10 ms
left = false
wait 10 ms
right = true
wait 10 ms
down = false
wait 10 ms
up = true
wait 10 ms
right = false
B = true
wait 10 ms
B and up = false
wait 600 ms
wiimote.Rumble = false
endif
// LEDs & rumble during spin attack
if (wiimote.Nunchuk.RawAccX > 20) then
wait 90 ms
wiimote.Rumble = true
wait 20 ms
Wiimote.Led1 = 1
wait 75 ms
Wiimote.Led2 = 1
wait 75 ms
Wiimote.Led3 = 1
wait 75 ms
Wiimote.Led4 = 1
wait 75 ms
Wiimote.Led1 = 0
wait 75 ms
Wiimote.Led2 = 0
wait 75 ms
Wiimote.Led3 = 0
wait 75 ms
Wiimote.Led4 = 0
wait 75 ms
wiimote.Rumble = false
endif
// Nunchuck controls
Z = wiimote.Nunchuk.ZButton
NUMPAD8 = Wiimote.Nunchuk.CButton
// Wiimote controls:
S = wiimote.Plus
b = wiimote.Minus
r = wiimote.b
NUMPAD8 = Wiimote.Up
NUMPAD4 = Wiimote.Left
NUMPAD6 = Wiimote.Right
NUMPAD5 = Wiimote.Down
a = Wiimote.A
S = wiimote.One
L = Wiimote.Two
// Swordfighting
if (wiimote.RelAccX > 25) or (wiimote.RelAccY > 25) or (wiimote.RelAccZ > 15) then
B = true
wiimote.Rumble = true
wait 60 ms
B = false
wait 100 ms
wiimote.Rumble = false
endif
Spoiler for Wiibrator (for the ladies O____o):
Code:
// D pad up turns it on
// D pad down turns it off
if wiimote.Up
wiimote.Rumble = 1
endif
if wiimote.Down
wiimote.Rumble = 0
endif
This is a....*cough* fun little program I found that may....*cough*entertain*cough* female Wiimote-on-PC users.
If anyone dares use it, please remember to seal your wiimote in a plastic bag or something, as your Wiimote may get...damaged from the....*ahem* moisture*cough cough*.
Spoiler for Really annoying script:
Code:
//Press any button on the Wiimote to close a program.
Alt+F4 = Wiimote.A or Wiimote.B or Wiimote.Up or Wiimote.Left or Wiimote.Right or Wiimote.Down or Wiimote.Minus or Wiimote.Home or Wiimote.Plus or Wiimote.One or Wiimote.Two
Easily piss off anyone. Just sync it, run the script, minimize or hide the window, hide nearby, then mash buttons while someone else tries to use the computer lol
Great forum for finding scripts: http://www.wiili.org/forum/glovepie-f44.html You don't have to register to browse. It's just a section on a much bigger website about Linux on Wii. Check it out if you are so inclined.
squee666 Wrote:lol i still prefer wiimote sound hacks
What? I'm not talking about the sound at all, although I'm sure you can script the little remote to play sound. And why would you prefer sound hacks to controller hacks? You can use your Wiimote as a freaking mouse!
roberth Wrote:I need a dongle
And i will 'borrow' that audiosurf script when i do, it must be awesome....hard though
Good, good. And check back periodically as I work on the tilt script for it. It will be awesome.
metalgear08 Wrote:What? I'm not talking about the sound at all, although I'm sure you can script the little remote to play sound. And why would you prefer sound hacks to controller hacks? You can use your Wiimote as a freaking mouse!
because i like the wii remote havin lightsaber sounds. plus what you posted is soo old it picks up dust. try searching for the dual wiimote pc mouse. 2 mice :D
metalgear08 Wrote:What? I'm not talking about the sound at all, although I'm sure you can script the little remote to play sound. And why would you prefer sound hacks to controller hacks? You can use your Wiimote as a freaking mouse!
because i like the wii remote havin lightsaber sounds. plus what you posted is soo old it picks up dust. try searching for the dual wiimote pc mouse. 2 mice :D
Ok, so what if it's old? This is a tutorial to get people started on using their Wiimote as a PC controller. It's just the basic stuff. And I think you can do the lightsaber thing with GlovePIE, but I don't know how yet.
metalgear08 Wrote:This is a guide on how to use your Wiimote as a controller for your computer. It's a really cool way to control your computer, and it's really easy to do.(Mac users have an entirely different, and easier method that I will detail when I get a Macbook Pro in June.)
What you'll need:
-Bluetooth of some sort (either built-in, or a dongle/card; I got a Motorola WIDCOMM dongle for $20 at Radioshack)
-A Wiimote, a Nunchaku attachment (optional), Classic Controller attachment (optional)
-Get GlovePIE, a controller scripting program that lets you script interface devices
Okay, here wee go.
1. (if you already have Bluetooth of some sorts, skip to step 2) Install your Bluetooth card/dongle using the packaged drivers, following the instructions. If you're using a dongle, plug it in now.
2. Go to your Bluetooth setup wizard (I'm using a Motorola dongle, and I don't know if it's different for other manufacturers.). Choose the option to find a device and configure it yourself. As it begins searching, hold the 1 and 2 buttons on the Wiimote so the blue lights at the bottom start to flash and it goes into Discoverable mode. It should show up on the list.
3. Keep pressing the 1 and 2 buttons to keep it available. Skip pairing, then click Finish once you see a checkbox with "Human Interface Device" or something similar selected. Congratulations, your Wiimote is now synced to your computer!
4. The only problem is that the buttons do nothing. This is where GlovePIE comes in handy. Open the program, and you should see a text=entry area, along with a RUN button at the top. The text entry area is where you write scripts to translate Wiimote functions, such as tilting and button presses, into PC functions, like mouse movement, clicking, and keyboard presses. Now, I'm still learning, so I really can't do stuff like tilting and analog attachment functions too well, and I'm not gonna pretend like I can. But button/keyboard translation couldn't be easier. All you do is write a script like this:
What this does is makes it so that every time you press up on the Wiimote D-pad, it registers like you just pressed W on the keyboard, and if you press up and B, it registers that you pushed Space. You can do much more complicated things, like map analog stick movements to keys or combinations of keys using the analog attachment, or use the Classic Controller in all this too. GlovePIE sorta walks you through it to a certain extent, so you'll get the hang of it.
Here's a script I wrote for Audiosurf, that I'm currently working on improving with tilt control, but for now it's just button presses
I have been playing Audiosurf using this, and honestly, I can't go back to using the keyboard or mouse. :D
5. Now that you've written a good script, test it out!
Anyway, I hope this helps, and here are some of my scripts just to get you started
Spoiler for N controller:
Code:
//N Controller v 0.1- By MetalGear08
//Hold like an Nes Controller
key.Left = Wiimote.Up //Move left
key.Right = Wiimote.Down //Move right
key.Shift = Wiimote.Two //Jump
key.q = Wiimote.Home //Quit
key.k = Wiimote.Minus //Kill self
key.Space = Wiimote.One //start game or unpause
Key.P = Wiimote.One //Pause during the game
key.Tab = Wiimote.Plus //Boss mode
Spoiler for Cool Ocarina of Time script I found:
This script makes it so that Ocarina of Time in your emulator has Twilight Princess style controls. Really cool in my opinion :D
Code:
/* Zelda: Ocarina of Time with Nunchuk - BMH version 1.0.
Written by BMH (based on Kunal Khiyani & vkapadia scripts)
*/
//
// Set your emulator to these values:
// Analog Stick = Up, Down, Left, and Right Arrow Keys
// Start = S
// Z-Button = z
// R-Button = r
// A-Button = a
// B-Button = b
// L-Button = l
// C-Up = NUMPAD8
// C-Down = NUMPAD5
// C-Left = NUMPAD4
// C-Right = NUMPAD6
//
//
// CONTROLS:
//
// Wiimote:
//
// Shake the wiimote = use sword
// D-pad = C buttons
// A = A (blue button/ context sensitive button)
// B trigger = Use shield
// Minus = Green button (skip text/navigate through menus)
// Home = Nothing
// Plus = Start (/red button in menus)
// 1 = Start
// 2 = Show/hide map
//
// Nunchuk:
//
// Shake the nunchuk = spin attack
// Analoge stick = movement
// C = first person view/talk to navi
// Z = Z-targeting
// Nunchuk movement:
if 2 > Wiimote1.Nunchuk.JoyX > 0.5 then
Right = true
wait 60 ms
Right = false
endif
if -2 < Wiimote1.Nunchuk.JoyX < -0.5 then
left = true
wait 60 ms
left = false
endif
if 2 > Wiimote1.Nunchuk.JoyY > 0.5 then
down = true
wait 60 ms
down = false
endif
if -2 < Wiimote1.Nunchuk.JoyY < -0.5 then
up = true
wait 60 ms
up = false
endif
// Spin attack (needs work/Fail rate is too high)
if (wiimote.Nunchuk.RawAccX > 20) then
up = true
wait 10 ms
left = true
wait 10 ms
up = false
wait 10 ms
down = true
wait 10 ms
left = false
wait 10 ms
right = true
wait 10 ms
down = false
wait 10 ms
up = true
wait 10 ms
right = false
B = true
wait 10 ms
B and up = false
wait 600 ms
wiimote.Rumble = false
endif
// LEDs & rumble during spin attack
if (wiimote.Nunchuk.RawAccX > 20) then
wait 90 ms
wiimote.Rumble = true
wait 20 ms
Wiimote.Led1 = 1
wait 75 ms
Wiimote.Led2 = 1
wait 75 ms
Wiimote.Led3 = 1
wait 75 ms
Wiimote.Led4 = 1
wait 75 ms
Wiimote.Led1 = 0
wait 75 ms
Wiimote.Led2 = 0
wait 75 ms
Wiimote.Led3 = 0
wait 75 ms
Wiimote.Led4 = 0
wait 75 ms
wiimote.Rumble = false
endif
// Nunchuck controls
Z = wiimote.Nunchuk.ZButton
NUMPAD8 = Wiimote.Nunchuk.CButton
// Wiimote controls:
S = wiimote.Plus
b = wiimote.Minus
r = wiimote.b
NUMPAD8 = Wiimote.Up
NUMPAD4 = Wiimote.Left
NUMPAD6 = Wiimote.Right
NUMPAD5 = Wiimote.Down
a = Wiimote.A
S = wiimote.One
L = Wiimote.Two
// Swordfighting
if (wiimote.RelAccX > 25) or (wiimote.RelAccY > 25) or (wiimote.RelAccZ > 15) then
B = true
wiimote.Rumble = true
wait 60 ms
B = false
wait 100 ms
wiimote.Rumble = false
endif
Spoiler for Wiibrator (for the ladies O____o):
Code:
// D pad up turns it on
// D pad down turns it off
if wiimote.Up
wiimote.Rumble = 1
endif
if wiimote.Down
wiimote.Rumble = 0
endif
This is a....*cough* fun little program I found that may....*cough*entertain*cough* female Wiimote-on-PC users.
If anyone dares use it, please remember to seal your wiimote in a plastic bag or something, as your Wiimote may get...damaged from the....*ahem* moisture*cough cough*.
Spoiler for Really annoying script:
Code:
//Press any button on the Wiimote to close a program.
Alt+F4 = Wiimote.A or Wiimote.B or Wiimote.Up or Wiimote.Left or Wiimote.Right or Wiimote.Down or Wiimote.Minus or Wiimote.Home or Wiimote.Plus or Wiimote.One or Wiimote.Two
Easily piss off anyone. Just sync it, run the script, minimize or hide the window, hide nearby, then mash buttons while someone else tries to use the computer lol
Great forum for finding scripts: http://www.wiili.org/forum/glovepie-f44.html You don't have to register to browse. It's just a section on a much bigger website about Linux on Wii. Check it out if you are so inclined.
Hope this helps :D
WOO HOO METAL FOR THE WiiNNNN. I do nto ahve a Wii but I should I guess.