Detecting axis if user dragging mouse

Hey, there is any detection function or something like for if user is pressing left button and dragging mouse. How do I do detect it? I want to rotate right if user is pressing and rotating to right. ( I have rotation function for 3D object. )

You can “GetMousePosition” on click, store the x,y position. Then Determine which direction the mouse is moving based on that, using the same node - “GetMousePosition”

Hi. When your player initially presses the left button, store the x and y position from GetMousePosition into a vector using the OnClick() node. It may be helpful to set a boolean like “MouseScrolling” to true when OnClick is used and set it to false when OnReleased() is triggered.

Then, use the OnTick() node on the Event Graph to check and see if MouseScrolling is true. If so, then run GetMousePosition again to get the current mouse position. Now compare the X vector of the GetMousePosition set during OnClick() with the GetMousePosition set during OnTick(). If the OnTick() X value is greater than the OnClick() X value, then the mouse has been moved to the right. If it is less, than it is being moved to the left. The same also applies with the Y vector.