Add mouse relative movement functionality and test