Mouse movement in game blender

Hello,

I try to do a simple thing. When i push the RMB and move to the right, my objet move to the right. If i move to the left, my object move to the left etc…

To do taht, i put 2 sensor:
1- mouse with right button
2- mouse with movement.

But i don’t know how to detect that my mous move to the right or to the left (or up or down).

How can i know that?

Tahnks for your time,

Dienben

in python the mouse sensor allows you to getMouseX() and getMouseY()