play lego star wars for PC with wiimote

 by Pat the taco
Okay i'm a huge fan of glovePIE and lego star wars so i put both in one project! the gamepad i have for my PC is really short so i have to sit right next to the tower to play but not anymore. if you all ready have a wiimote and nunchuk connected to your computer and a copy of Lego Star Wars then your all set to go.

Step 1: Assemble your materials

DSC00180.jpg
Ok the things you need are
1 wiimote
1 nunchuk
1 copy of Lego Star Wars for PC (any will do but i did it with the original trilogy)
and one bluetooth adapter

Step 2: Get connected

if you all ready have your wiimote sync. up with your PC you can skip this step if you don't then
to hook wiimote up to your computer. plug your bluetooth USB into your computer then open it up your bluetooth stack. click "new connection", click okay and press the 1+2 buttons on your wiimote. the when you've connected the wiimote's LEDS will keep flashing.

Step 3: Obtain the software

to do this you'll need glovePIE you can get it at www.carl.kenner.googlepages.com/glovepie_download
and you will need any of the lego star wars for PC

Step 4: Program glovePIE

okay the coolest part of this is that it dosen't use PPjoy. anyway you need to open up glovePIE and copy and paste the code from below into glovePIE
/*
you move with the nunchuk's joystick
A jumps
B shoots
C tags
Z special
toggle up +
toggle down -
start Home
*/
// this is some FX for the wiimote.it makes the LEDs do the wave//
/* I put it in an IF statement so it can run in the background
and no slow the reaction time */
if wiimote.Exists
wiimote.led1 = true
wait 100ms
wiimote.led2 = true
wiimote.led1 = false
wait 100ms
wiimote.led3 = true
wiimote.led2 = false
wait 100ms
wiimote.led4 = true
wiimote.led3 = false
wait 100ms
wiimote.led3 = true
wiimote.led4 = false
wait 100ms
wiimote.led2 = true
wiimote.led3 = false
wait 100ms
wiimote.Led1 = true
wiimote.led2 = false
wait 100ms
endif
// Okay here's the controls //
key.a = wiimote.A
key.b = wiimote.B
key.c = wiimote.Nunchuk.ZButton
key.d = wiimote.nunchuk.CButton
key.numpad6 = round(wiimote.nunchuk.joyx) > 0
key.numpad4 = round(wiimote.nunchuk.joyX) < 0
key.numpad8 = Round(wiimote.nunchuk.joyY) < 0
key.numpad2 = round(wiimote.nunchuk.joyY) > 0
key.i = wiimote.Plus
key.j = wiimote.Minus
key.k = wiimote.Home

Step 5: Putting the controls into action

DSC00283.jpg
now run Lego Star Wars and go to controller options and set your controls to this

move left num6
move right num4
move up num8
move down num2
jump a
action b
special c
tag d
toggle up i
toggle down j
start k

Step 6: Test run

go down to apply and test out your controls if they work then congratulations
Krayzi99 says: Sep 22, 2011. 7:48 PM
cant seem to connect mine! help, please
jgfresh says: Aug 11, 2011. 11:13 AM
why didnt you use motion controls lol ?
hellking says: Feb 10, 2010. 2:11 AM
I cant see the bluetooth adapter??

Arbitror says: May 17, 2009. 4:21 PM
Wow, how big is that screen?
Arbitror in reply to ArbitrorMay 17, 2009. 4:21 PM
800x600?
N1CK4ND0 says: Mar 24, 2009. 1:34 PM
Try playing Crysis with that wimpy thing!
N1CK4ND0 in reply to N1CK4ND0Mar 24, 2009. 1:34 PM
Heh, just kidding, Wii is awsome.
Scott_Tx says: Mar 23, 2009. 5:30 AM
Link for glovepie says 404
Scott_Tx in reply to Scott_TxMar 23, 2009. 5:32 AM
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!