well i share my glovepie script for anyone that needs it, its a simple script works perfect in resolution 1024*768 if you use another resolution i can tell you what to change in it. ( i have found many scripts but all of then made the mouse flycks to much if you understand me)
in demul there are games that the reload are buttons left and right simultaneasly, i have configured button 1 of wiimote to do this reload.
put this code in glovepie:
mouse.CursorPosX = smooth(1024-round((((wiimote1.dot1x+wiimote1.dot2x)/2)/1024)*1024),3)
mouse.CursorPosY = smooth(round((wiimote.dot1y/784)*768),3)
mouse.LeftButton = Wiimote.B and KeepDown(Wiimote.PointerVisible,0.5s)
mouse.RightButton = Wiimote.A and KeepDown(Wiimote.PointerVisible,0.5s)
mouse.MiddleButton = Wiimote.Home and KeepDown(Wiimote.PointerVisible,0.5s)
Key.Five = Wiimote.Plus
Key.One = Wiimote.Minus
mouse.RightButton + mouse.LeftButton = Wiimote.One
if you want rumble every time you press trigger - B button put this lines of code:
If Var.Rumble
Wiimote.Rumble = 1
Wait 100ms
Wiimote.Rumble = 0
Wait 50ms
EndIf
If Pressed(Var.Rumble1 or Var.Rumble2 or Var.Rumble3 or Var.Rumble4 or Var.Rumble6 or Var.Rumble7 or Var.Rumble8 or Var.Rumble9 or Var.Rumble10) or Pressed(Var.Rumble5)
Wiimote.Rumble = 1
Wait 80ms
Wiimote.Rumble = 0
EndIf
if you want to stop the script with 4 wiimote A+B+1+2 buttons press (3 seconds) put this line of code:
Var.ABZC = (Wiimote.A + Wiimote.B + Wiimote.One + Wiimote.Two)
if Var.ABZC then Var.Stop1 = 1
if Var.Stop1 then Var.Stop ++
if Var.Stop > 80 then Keyboard.LeftShift + P + I + E = 1
if (Var.ABZC = 0) then Var.Stop1 + Var.Stop = 0
i tested this script in all emulators that you can use mouse as lightgun works perfect.
my only problem is demul 057 that for some strange reason mouse doesnt work im stick to 056.
ok as you can see button + adds credits and button - start player 1
again i tell that this script is ok for 1024*768 for others resolution needs change i can help with that.