Page 1 sur 1

Script Glovepie

Posté : 03 janv. 2010, 17:17
par CrystalKube
Salut, j'ai fait un petit script Glovepie pour piloter un jeu de voitures radiocommandées avec une Wiimote. J'ai tout bien configuré, mais quand je vais dans le panneau de config je vois mon "Virtual Controller" que PPJoy fait pour aller en parrallèle avec Glovepie, sauf que ca marche pas :( Aucun bouton ne marche :(

Key.A = Wiimote.A
Key.Z = Wiimote.B
Key.E = Wiimote.Minus
Key.R = Wiimote.Plus
Key.T = Wiimote.Home
Key.Y = wiimote.One
Key.U = wiimote.Two

Key.Up = Wiimote.Up
Key.Down = Wiimote.Down
Key.Left = Wiimote.Left
Key.Right = Wiimote.Right

If Wiimote.Up=True
Wiimote.Led1=True
'wait 10ms
Wiimote.Led1=False
'endif

If Wiimote.Down=True
Wiimote.Led2=True
'wait 10ms
Wiimote.Led2=False
'endif

If Wiimote.Right=True
Wiimote.Led3=True
'wait 10ms
Wiimote.Led3=False
'endif

If Wiimote.Left=True
Wiimote.Led4=True
'wait 10ms
Wiimote.Led4=False
'endif

If Wiimote.Home=True
Wiimote.Rumble=True
'wait 100ms
Wiimote.Rumble=False
'endif

Si vous pouvez m'aider... ca me serait d'une grande utilité :)

Posté : 03 janv. 2010, 17:46
par CrystalKube
Cest bon, j'ai réussi :)

Posté : 04 janv. 2010, 00:17
par Trebor
si tu pouvais dire comment tu as fais pour regler le problème ce serait bien pour d'autre personne. :wink:

Posté : 04 janv. 2010, 13:07
par CrystalKube
Je vais faire un tuto cet aprem, pas cours ;)
J'expliquerai tout ca ;)