//Google Earth Wiimote Control //@Version: GlovePIE script V1.0 (13/12/2006) //@Author: Luca Sartoni http://www.lucasartoni.com //Feel free to edit and distribute this script // //Instructions: // Tilting up, down, left and right will move the surface. // Holding B while tilting up and down will tilt the view up and down. // Holding B while tilting left and right will rotate the view. // Holding A while tilting up and down will zoom in and zoom out the view. // Pressing Home will center the view. // Pressing 1 will toggle fullscreen. //Configuration // axis offset var.x0 = 0 var.y0 = 0 var.z0 = 0 // sensivity var.xsense=15 var.zsense=15 // if you want the wiimote to rumble during usage var.rumble=true // if you want leds blinkning during usage var.leds=true //applying the offset var.x = Wiimote.RawForceX + var.x0 var.y = Wiimote.RawForceY + var.y0 var.z = Wiimote.RawForceZ + var.z0 //simple debug string debug="X: "+var.x+" - Y: "+var.y+" - Z: "+var.z if (abs(var.z)>var.zsense or abs(var.x)>var.xsense) then if var.rumble then wiimote.Rumble=1 endif if var.leds then wiimote.Leds=15 endif else wiimote.rumble=0 wiimote.Leds=0 endif keyboard.Up=var.z>var.zsense keyboard.Down=var.z<-var.zsense keyboard.Left=var.x>var.zsense keyboard.right=var.x<-var.xsense keyboard.Shift =Wiimote.B keyboard.Ctrl=wiimote.A keyboard.r=Wiimote.home keyboard.f11=wiimote.One