Check if mouse clicked and moved


how can I check if the right mouse tab is clicked AND at the same time the mouse is moved right? I cant get it with self.accept ! How can I do this?

on mouse click event handler:
__record mouse position somewhere

on a task that runs every frame:
__if the button is currently down:
____get current position
____subtract recorded position from current position