0 votes

I want to check the mouse is slide rotating,what function can do it?

in Engine by (56 points)
edited by

1 Answer

0 votes
Best answer

Can you explain what you mean by "slide rotating"? These are some of the functions that I know, I explain them to you in case it is what you are looking for:
speed: the speed of the mouse (Vector2), 0, 0 if the mouse is still.
position: current position.
relative: the last position of the mouse in the previous frame, but relative to the current position.
tilt: the rotation of the pen (or mouse slide rotating? ), on tablets to draw as wacom.

func _input(event):
    if event is InputEventMouseMotion:
        print("Speed: ", event.speed)
        print("Position: ", event.position)
        print("Relative last position: ", event.relative)
        print("Tilt: ", event.tilt)
by (2,060 points)
selected by

why the event can not check InputEventMouseMotion when i was moving mouse?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.