I'd use the mousemovement event to get the X and Y value, compared against the last X and Y values (which you need to store in a global var), you can calculate the DeltaX and DeltaY.
Where is your problem, how the get those DeltaX and DeltaY or how to calculate the radians from DeltaX and DeltaY?