All pastes #270970 Raw Edit

Untitled

public text v1 · immutable
·published 2006-12-08 00:25 UTC
rendered paste body
var.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;
}