// Type your program here, or click the GUI tab to autogenerate it! // turns on second and third LED to help show it's working Wiimote.Leds = 2+4 Mouse.LeftButton = Wiimote.A Mouse.RightButton = Wiimote.B // blue screen of death when you tilt the controller up or down too much if (Wiimote.RawForceY < 10) then Execute('c:\downloads\Bluescreen.scr'); // Show wiimote forces debug = (var.x+9) + ' | ' + (Wiimote.RawForceX+9) +' | '+(Wiimote.RawForceY-31)+' | '+(Wiimote.RawForceZ+7) // Set keys to wiimote buttons Key.PageUp = Wiimote.One Key.PageDown = Wiimote.Two Up = Wiimote.Up Down = Wiimote.Down Left = Wiimote.Left Right = Wiimote.Right Key.Enter = Wiimote.Plus Key.Esc = Wiimote.Home // Rumble when shift is pressed Wiimote.Rumble = Key.Windows