Bei der aktuellen Version 0.28 von GlovePIE wird direkt ein ganzer Stapel an Wiimote-spezifischen Scripts mitgeliefert. Mit dabei waren zwei Scripts um Winamp zu steuern, die allerdings beide nicht gerade sehr nützlich waren. Nach etwas Rumprobiererei kam dann diese recht praktische Script bei raus:
// Wiinamp
// Volume Down (D-pad up)
// Volume Up (D-pad down)
// Back 5 seconds (D-pad left)
// Jump 5 seconds (D-pad right)
// Play (Main "A" button on Wiimote)
// Pause ("B" button on Wiimote)
// Pause (alt) (Shake it, baby!)
// Next track ("1" button on Wiimote)
// Previous track ("2" button on Wiimote)
// Stop (Stop, "Home" button on Wiimote)
// Volume Down ("-" button on Wiimote)
// Volume Up ("+" button on Wiimote)
// enable reapeating cursors, dunno why that works, seems like a bug in GlovePIE
if wiimote.plus then
volumeup = false
endif
// Map D-Pad to cursor keys
if wiimote.Up
Up = true
else
Up = false
endif
if wiimote.Down
Down = true
else
Down = false
endif
if wiimote.Left
Left = true
else
Left = false
endif
if wiimote.Right
Right = true
else
Right = false
endif
// alternative pause with rawforece
c = Wiimote.RawForceX >= 70 or Wiimote.RawForceY >= 70
// set up other keys
x = Wiimote.A
c = Wiimote.B
s = Wiimote.One
r = Wiimote.Two
v = Wiimote.Home
y = Wiimote.Minus
b = Wiimote.Plus
Viel Spaß damit!
Update:
Der Autor von GlovePIE, Carl Kenner, hat sich im offiziellien Forum zu dem Hack geäußert.