Koopale's Tumblelog

Monaco 1992

Codice GlovePIE per connettere WiiMote al PC

Basato sul codice di Penmonicus ho riscritto lo script per far funzionare il telecomando Wii sul PC con vari emulatori o giochi come rFactor. Da copiare nell’ editor di GlovePIE e avviare.

//WiinAmp controller based on Penmonicus’ code edited by Koopale

//LED Config:
//LED1: Indicates ‘Repeat’ setting (On = Repeat All, Off = Off. WinAmp also seems to have a “Repeat One” function, though that can’t be controlled by Hotkeys, apparently.)
//LED2: Indicates ‘Shuffle’ setting (On = On, Off = Off)

//Setting the Universal “On” key:
Ctrl+Alt = Wiimote.B

//WinAmp controls (These can be set to any key you like, if these keys are already in use):
Up = Wiimote.Right              
Down = Wiimote.Left             
Left = Wiimote.Up               
Right = Wiimote.Down             
A = Wiimote.One                   
B = Wiimote.Two                  
X = Wiimote.A                   
Y = Wiimote.B                     
d = Wiimote.Minus           
f = Wiimote.Plus               
g = Wiimote.Home               

if Wiimote.One = true and Wiimote.B = true
        wait 300 ms
        var.Repeat = var.Repeat + 1
endif

if Wiimote.Two = true and Wiimote.B = true
        wait 300 ms
        var.Shuffle = var.Shuffle + 1
endif

if odd(var.Repeat) and odd (var.Shuffle)
        Wiimote.LEDs = 3
else
        if odd(var.Repeat)
                Wiimote.LEDs = 1
        else
                if odd(var.Shuffle)
                        Wiimote.LEDs = 2
                        else
                                Wiimote.LEDs = 0
                endif
        endif
endif

If Wiimote.Plus = true and Wiimote.B = true
        VolumeUp = true
endif

If Wiimote.Minus = true and Wiimote.B = true
        VolumeDown = true
endif

Naturalmente ogni pulsante del telecomando corrisponde ad un comando della tastiera del computer ed è possibile cambiarli a seconda delle proprie esigenze.

First day in tumblr!

My first day in tumblr! I like the blog watching system and the possibility to use like a blog. I’m gonna try it and I think to use english only this time. See ya