Wiimote.Rumble = Joystick.ForceFeedback Wiimote.Led1 = Wiimote.Battery > 38 Wiimote.Led2 = Wiimote.Battery > 76 Wiimote.Led3 = Wiimote.Battery > 115 Wiimote.Led4 = Wiimote.Battery > 153 //Mouse1.Visible = true //Mouse1.Cursor = Random(21) if Wiimote.Up then Mouse1.WheelUp = true Mouse1.WheelUp = false endif if Wiimote.Down then Mouse1.WheelDown = true Mouse1.WheelDown = false endif if Wiimote.Left then Mouse1.WheelLeft = true Mouse1.WheelLeft = false endif if Wiimote.Right then Mouse1.WheelRight = true Mouse1.WheelRight = false endif Mouse1.RightButton = Wiimote.A Mouse1.LeftButton = Wiimote.B Mouse1.MiddleButton = Wiimote.Home //if Wiimote.Plus then // if var.osk = false then // Execute("osk") // var.osk = true // endif //endif //if Wiimote.Minus then // if var.osk = true then // ExitProgram // var.osk = false // endif //endif Mouse1.XButton1 = Wiimote.Minus Mouse1.XButton2 = Wiimote.Plus Keyboard.Enter = wiimote.one Keyboard.Esc = wiimote.two // set these to the offsets when the wiimote is at rest // will be different for each wiimote most likely var.x = Wiimote.RawForceX +9 //trim to 0 var.y = Wiimote.RawForceY -32 // trim to 0 var.z = Wiimote.RawForceZ +9 //trim to 0 //precision var.sense0 = 500 var.thresh0x = 5 var.thresh0y = 2 var.sense = 300 var.threshx = 10 var.threshy = 5 var.sense2 = 100 var.thresh2x = 15 var.thresh2y = 8 var.sense3 = 50 var.thresh3x = 20 var.thresh3y = 12 var.cursorx = Mouse1.x var.cursory = Mouse1.y //first sensitivity setting //xaxis if var.x > var.thresh0x var.cursorx = var.cursorx - 1/var.sense0 endif if var.x < -var.thresh0x var.cursorx = var.cursorx + 1/var.sense0 endif //yaxis if var.z > var.thresh0y var.cursory = var.cursory - 1/var.sense0 endif if var.z < -var.thresh0y var.cursory = var.cursory + 1/var.sense0 endif //second sensitivity setting //xaxis if var.x > var.threshx var.cursorx = var.cursorx - 1/var.sense endif if var.x < -var.threshx var.cursorx = var.cursorx + 1/var.sense endif //yaxis if var.z > var.threshy var.cursory = var.cursory - 1/var.sense endif if var.z < -var.threshy var.cursory = var.cursory + 1/var.sense endif //third sensitivity setting //xaxis if var.x > var.thresh2x var.cursorx = var.cursorx - 1/var.sense2 endif if var.x < -var.thresh2x var.cursorx = var.cursorx + 1/var.sense2 endif //yaxis if var.z > var.thresh2y var.cursory = var.cursory - 1/var.sense2 endif if var.z < -var.thresh2y var.cursory = var.cursory + 1/var.sense2 endif //fourth sensitivity setting //xaxis if var.x > var.thresh3x var.cursorx = var.cursorx - 1/var.sense3 endif if var.x < -var.thresh3x var.cursorx = var.cursorx + 1/var.sense3 endif //yaxis if var.z > var.thresh3y var.cursory = var.cursory - 1/var.sense3 endif if var.z < -var.thresh3y var.cursory = var.cursory + 1/var.sense3 endif //if var.cursorx < 0 then // var.cursorx = 0 //endif //if var.cursory < 0 then // var.cursory = 0 //endif //if var.cursorx >= 1 then // var.cursorx = 1 //endif //if var.cursory >= 1 then // var.cursory = 1 //endif Mouse1.x = var.cursorx Mouse1.y = var.cursory