fixed Mouse, so now it is completely working.
We may want to improve relative motion to discard the previous value each time, because it will not equal zero because an event is not generated when the mouse is not moved.