Play lego star wars for PC with wiimote

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 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
// 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

Remove these adsRemove these ads by Signing Up
jgfresh2 years ago
why didnt you use motion controls lol ?

Get More Out of Instructables

Already have an Account?


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!