From WiiLi
//Rhythm Tengoku
//squeakypants
//
//var.set:
// 0: whenever the Wiimote is rotated "down", A will be hit and will continue to
// be until you rotate it back "up"... good for the hair pulling minigame
// 1: "flick" Wiimote to hit A
//Change for each minigame to your liking. Nunchuka is always in "flick" mode
var.set = 0;
if (var.set == 0) {
if (Wiimote.gy > 1.5) {
Keyboard.A = True;
} else if (Wiimote.gy < -0.5&&!wiimote.A) {
Keyboard.A = False;
}
} else if (var.set == 1) {
if (Wiimote.gy > 1.5) {
Keyboard.A = True;
} else if (Wiimote.gy < 1.5&&!wiimote.A) {
Keyboard.A = False;
}
}
if (Wiimote.Nunchuk.gy > 1.5) {
Keyboard.Up = True;
} else {
Keyboard.Up = False;
}
Keyboard.Up = Wiimote.Up;
Keyboard.Down = Wiimote.Down;
Keyboard.Left = Wiimote.Left;
Keyboard.Right = Wiimote.Right;
keyboard.A = wiimote.A;
Keyboard.B = Wiimote.B;
Keyboard.X = Wiimote.Plus;
Keyboard.Z = Wiimote.Minus;
debug = wiimote.Battery;
Wiimote.Leds = 1;