Mouse movement sensor

How can you make an acuator respond to the direction of the mouse movement? It seems so far the the mouse movement sensor doesn’t care which way the mouse or trackball is moved.

You need a python scripts for acual directions, it’s kinda stupid, but it’s the only way.

Pooba

OK…so how do you define mouse/trackball direction in a script?

problem you would encounter: you need to know where the mouse was last time

also, you probably need to keep your mouse from moving off of the screen

for those willing to learn python (not hard, if you can program something else), the (incomplete) solution follows

first: store the mouse coordinates in properties

on each run of the script
compare where the mouse is now to the mouse coordinates in the properties. Will yield which direction the mouse went, and how far.
set the mouse’s current position in the properties

with the cursor not moving far from one spot:
position the cursor at that spot
find the coordinates of that spot (they are different I think from where you sent the cursor to)

do the same as above, but instead of storing the mouse position, reposition the mouse to where you moved it to above

it should be noted that with this method when the mouse is moved (by the script) it must not be concruently moving (by the user). I guess you could wait for the user to stop moving the mouse.