This is my current script (with a workaround in place):
Code: Select all
//Vol stuff
if Wiimote1.Two then
volumeup = true
wait 120 ms
volumeup = false
endif
if Wiimote1.One then
volumedown = true
wait 120 ms
volumedown = false
endif
if Wiimote1.A then
mute = true
wait 175 ms
mute = false
endif
// Strumming
if(Wiimote1.Guitar.StrumDown) then
PPJoy1.Digital8 = true
else
PPJoy1.Digital8 = false
end if
if(Wiimote1.Guitar.StrumUp) then
PPJoy1.Digital9 = true
else
PPJoy1.Digital9 = false
end if
// Frets
if(Wiimote1.Guitar.Fret1) then
Key.Apostrophe = true
else
Key.Apostrophe = false
end if
if(Wiimote1.Guitar.Fret2) then
PPJoy1.Digital2 = true
else
PPJoy1.Digital2 = false
end if
if(Wiimote1.Guitar.Fret3) then
PPJoy1.Digital3 = true
else
PPJoy1.Digital3 = false
end if
if(Wiimote1.Guitar.Fret4) then
PPJoy1.Digital4 = true
else
PPJoy1.Digital4 = false
end if
if(Wiimote1.Guitar.Fret5) then
PPJoy1.Digital5 = true
else
PPJoy1.Digital5 = false
end if
//Analog Stick Controls (for menus)
PPJoy1.Analog0 = Wiimote1.Guitar.JoyX
PPJoy1.Analog1 = Wiimote1.Guitar.JoyY
//Escape
if(Wiimote1.Guitar.Plus) then
PPJoy1.Digital6 = true
else
PPJoy1.Digital6 = false
end if
//Jurgen Power
PPJoy1.Digital7 = Wiimote1.Guitar.Minus
if |wiimote1.RelAcc| >= 5 then
PPJoy1.Digital7 = true
wait 100ms
PPJoy1.Digital7 = false
end if
// Home ends the program
Key.Shift+P+I+E = Wiimote1.Home
var.temp = (Wiimote1.Guitar.WhammyBar*100) div 1
if ((var.temp mod 2) = 0) then
PPJoy1.Digital10 = true
else
PPJoy1.Digital10 = false
end if
Wiimote1.Leds = 1
I don't want to have to use this workaround. Can anyone help me fix this problem? All other buttons work fine.