Hey thanks a lot! This was enough to get me started and refresh me on my C++! Anyways, I took your code and and added some big improvements to it. I wanted game play to be smoother and feel more like Wii controls. I moved the R button on the n64 controller to the c button on the wiimote because R is used fairly often and c is much easier to press than +. Plus was moved to be the Start button to pause games, and if the wiimote is set down it will automatically pause the game. You can use the home button on the wiimote to togel full screen on and off. Pressing the c button and plus will save the game and pressing c, z, and 1 at the same time restores you to your last save.

I also made one just for OoT, but the only difference is that shaking the wiimote with your wrist also works as b.
/*
!!!!!!!!!!Wiimote on Project 64!!!!!!!!!!
v1.2
GlovePIE script by Andrew H.
Optimized by Colin L.
For Project64 (Using default controls)
--Controls On WiiMote---
Left, Up, Right, Down directional pad arrows control the "C" buttons respectively
'A' button is A
'B' button is B
'Home' button or setting the WiiMote down is start
'Z' button is Z on nunchuk
Analog Stick on nunchuk controls character
'C' button is R
--Other Functionality--
To save the game, hold the 'C' button on the nunchuk and press
the '+' button.
To restore your last save, hold the 'C' and 'Z' buttons on the
nunchuk and press '1' on the Wiimote.
To toggle fullscreen on and off, press the home button
--Comments--
The reason I mapped the Wiimote arrow keys to the 'C' buttons is
because it'd be too awkward to play if they were mapped to the N64
controller arrow buttons.
*/
//Joystick Configuration: Andrew H. Original
Key.Left = (-1.2 < wiimote.Nunchuk.JoyX < -0.5)
Key.Right = (0.5 < wiimote.Nunchuk.JoyX < 1.2)
Key.Up = (-1.2 < wiimote.Nunchuk.JoyY < -0.5)
Key.Down = (0.5 < wiimote.Nunchuk.JoyY < 1.2)
//D-pad Configuration: Andrew H. Original
Key.NUMPAD4 = wiimote1.Left
Key.NUMPAD6 = wiimote1.Right
Key.NUMPAD8 = wiimote1.Up
Key.NUMPAD2 = wiimote1.Down
//Other N64 Controler Configuration: Colin L. Optimized
Key.X = wiimote1.A
Key.Z = Wiimote1.Nunchuk.ZButton
Key.C = Wiimote1.B
Key.S = Wiimote1.nunchuk.CButton
Key.A = Wiimote1.Minus
Key.Enter = Wiimote.Plus
//Key Press Variable: Colin L. Original
//This is to prevent OnTable from being triggered durring gameplay
if(Key.Left or Key.Right or Key.Up or Key.Down or Key.NUMPAD8 or Key.NUMPAD6 or Key.NUMPAD4 or Key.NUMPAD2 or Key.X or Key.Z or Key.C or Key.A or Key.S){
var.KeyPress = true
wait(4.3s)
}else{
var.KeyPress = false
}
//Start/Pause Button Configuration: Colin L. Original
if (var.EnterHit == (false or 0) and var.KeyPress == false){
Key.Enter = Wiimote.Plus or Wiimote.OnTable
}else{
Key.Enter = Wiimote.Plus
}
if (Key.Enter && var.EnterHit == (false or 0)){
wait(1s)
var.EnterHit = true
wait(1s)
}elseif Key.Enter{
wait(1s)
var.EnterHit = false
wait(1s)
}
if Wiimote.B or Wiimote.DrumBeat{
var.EnterHit = false
}
//Project 64 Special Function Configuration: Colin L. Optimized
Key.F5 = Wiimote1.nunchuk.CButton && Wiimote1.Plus
Key.F7 = Wiimote1.nunchuk.CButton && Wiimote1.nunchuk.ZButton && Wiimote.One
//Fullscreen Debug Loop: Colin L. Original
var.ControlTwo = 0
while(Pressed(Wiimote1.Home)){
if var.ControlTwo = 0{
Key.Alt and Key.Enter = true
var.ControlTwo++
}else{
Key.Alt and Key.Enter = false
}
}
//Other Debugging: Andrew H. Original
if Wiimote1.Up{
Key.Home = Wiimote1.Up
//debug = "1"
}else{
Key.Home = ''
}
if Wiimote1.Right{
Key.PageDown = Wiimote1.Right
//debug = "2"
}else{
Key.PageDown = ''
}
if Wiimote1.Down{
Key.End = Wiimote1.Down
}else{
Key.End = ''
}
if Wiimote1.Left{
Key.Delete = Wiimote1.Left
//debug = "4"
}else{
Key.Delete = ''
}
//LED Settings: Colin L. Original
//Controler 1
Wiimote1.Led1 = true
Wiimote1.Led2 = false
Wiimote1.Led3 = false
Wiimote1.Led4 = false
//Controler 2
Wiimote2.Led1 = false
Wiimote2.Led2 = true
Wiimote2.Led3 = false
Wiimote2.Led4 = false
//Controler 3
Wiimote3.Led1 = false
Wiimote3.Led2 = false
Wiimote3.Led3 = true
Wiimote3.Led4 = false
//Controler 4
Wiimote4.Led1 = false
Wiimote4.Led2 = false
Wiimote4.Led3 = false
Wiimote4.Led4 = true