ZEN Tech NZ

AvatarIf there are no technical difficulties rights now, there will be!

Using a Wiimote as a PC Input Device - Part IIIA

Now we need to look and see how to get and use the  readings from the RawForce sensors, first, because every set up is different we need a way of 'centering' the mouse. We do this by using some 'trim' variables:

var.trimx = 6
var.trimy = -31
var.trimz = 6

var.x = Wiimote.RawForceX + var.trimx
var.y = Wiimote.RawForceY + var.trimy
var.z = Wiimote.RawForceZ + var.trimz

debug = var.x + " " + var.y + " " + var.z

The last line will display the values in those variables, you will have to adust the var.trimx, var.trimy and var.trimz values until the displayed var.x, var.y and var.z all equal 0 (zero).

End Part IIIA