Get direction of mouse movement
-
Is there a way to determine which direction the mouse has been moved inside a mouseMoveEvent?
I want to be able change the value of scroll bar on the basis of mouse movement.
-
Is there a way to determine which direction the mouse has been moved inside a mouseMoveEvent?
I want to be able change the value of scroll bar on the basis of mouse movement.
@ScleaverZer0ne You can always remember the previous mouse cursor position(s) and then compare with the new one to determine the movement direction.
-
@ScleaverZer0ne You can always remember the previous mouse cursor position(s) and then compare with the new one to determine the movement direction.
@jsulm I just thought of that a moment ago and came here to edit the post and read your answer lol. Thanks tho!
-
S ScleaverZer0ne has marked this topic as solved on