Comando da Wii no PC

ShadowsDML

Power Member
Aqui está o meu primeiro código do comando da Wii no PC já da para mover o cursor andar nas setas tecla do windows etc. a linguagem é bastante acessível.

//Mouse Movements With Nunchuk
Mouse.x = MapRange(Wiimote1.Nunchuk.JoyX, -1,1, 0,1)
Mouse.y = MapRange(Wiimote1.Nunchuk.JoyY, -1,1, 0,1)

//Mouse Keys
Mouse.RightButton = Wiimote1.Nunchuk.CButton
Mouse.LeftButton = Wiimote1.Nunchuk.ZButton

//The Arrow Keys
Key.Up = Wiimote1.Up
Key.Down = Wiimote1.Down
Key.Right = Wiimote1.Right
Key.Left = Wiimote1.Left

//Addictional Keys
Key.Windows = Wiimote1.Home
Key.F4 = Wiimote1.Plus
Key.Alt = Wiimote1.Minus
Key.Enter = Wiimote1.B
PS:Tem alguns bugs especialmente no cursor que não chega aos cantos.
 
Última edição:
Back
Topo