Untitled
public text v1 · immutablevar.x2 = wiimote.dot2x;
var.y2 = wiimote.dot2y;
var.x1 = wiimote.dot1x;
var.y1 = wiimote.dot1y;
Cursor1.x = 1 - (var.x1+var.x2)/(2 * var.MaxX);
Cursor1.y = (var.y1+var.y2)/(2 * var.MaxY);
if(wiimote.A){
cursor1.LeftButton = true;
}else{
cursor1.LeftButton = false;
}