From WiiLi
/*
*****************************
* TIGER WOODS PGA TOUR 2007 *
*****************************
Par MrAttila
Mise à jour le 18 janvier 2007
NOTE : Le bouton A permet de permuter entre le mode
souris / Club de golf.
Avant de permuter, assurez vous que la souris soit
au milieu de l'écran.
*/
// CONFIGURATION DES BOUTONS DE LA WIIMOTE
shift + P + I + E = wiimote.home
left = wiimote.Left
right = wiimote.Right
E = wiimote.down
mouse.LeftButton = wiimote.B
comma = wiimote.Plus
M = wiimote.Minus
Six = wiimote.Two
One = wiimote.One
Z = wiimote.Up
// CREATION D'UN BOUTON MAINTIEN VIRTUEL
if wiimote.A = true then
if var.buttona = false then
var.buttona = true
else
var.buttona = false
endif
wait 200 ms
endif
// UTILISATION DE LA WIIMOTE EN MODE CLUB DE GOLF
if var.buttona = true then
mouse.y = (smooth(Wiimote.gZ) + 1) /2 /110
EndIf
// UTILISATION DE LA WIIMOTE EN MODE SOURIS
if var.buttona = false then
if wiimote.gx > (1/2)
mouse.x = mouse.x - 1/200
endif
if wiimote.gx < -(1/2)
mouse.x = mouse.x + 1/200
endif
if wiimote.gz > (1/2)
mouse.y = mouse.y - 1/200
endif
if wiimote.gz < -(1/2)
mouse.y = mouse.y + 1/200
endif
endif