[Test script] enable the arm to follow the mouse pointer

Test of how to later make the arm follow the mouse pointer. TODO: add this to the wiicontrol script in order to have the same effect when using the wiimote. Also includes small fixes for wiiinput smoothing.