i have got a simple idea to realize a finger tracking mouse with glovepie

the yellow circles are leds.
the led 1 is allways on and moves the mousecursor
the led 2 is the "left mouse button", and glow if thumb and forefiner touching
the led 3 is the "right mouse button" and glow if thumb and forefiner and middle finger touching
there is the script for glovepie
// Wiimote mouse script for Windows desktop
// Requires a sensor bar
var.ButtonFreezeTime = 250ms
var.PointerBump = KeepDown(Pressed(wiimote.A),var.ButtonFreezeTime) or KeepDown(Pressed(wiimote.B),var.ButtonFreezeTime)
Wiimote.Led1 = true
// Mouse movement
if wiimote.PointerVisible but not var.PointerBump then
mouse.x = wiimote.PointerX
mouse.y = wiimote.PointerY
end if
// Mouse Buttons
mouse.LeftButton = wiimote1.dot1vis + wiimote1.dot2vis
mouse.RightButton = wiimote1.dot1vis + wiimote1.dot3vis
mouse.MiddleButton = Wiimote.Home and KeepDown(Wiimote.PointerVisible,0.5s)
mouse.XButton1 = Wiimote.Minus
mouse.XButton2 = Wiimote.Plus
// Mouse Wheel
if wiimote.Up then
mouse.WheelUp = true
wait 30ms
mouse.WheelUp = false
wait 30ms
end if
if wiimote.Down then
mouse.WheelDown = true
wait 30ms
mouse.WheelDown = false
wait 30ms
end if