We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.2.2 current steam version
Windows 10 pro
I have the same issue where the mouse is visible and isn't centered even after using
func ready(): Input.mouse_mode = Input.MOUSE_MODE_CONFINED_HIDDEN
The mouse courser isn't hidden and is still on the window screen, I can move the position around but it stops when I hit the end of the window
head is a 3d node that contains a camera 3d
@onready var head = $head func ready(): Input.mouse_mode = Input.MOUSE_MODE_CONFINED_HIDDEN func _input(event): if event is InputEventMouseMotion: rotate_y(deg_to_rad(-event.relative.x * mouse_sens)) head.rotate_x(deg_to_rad(-event.relative.y * mouse_sens)) head.rotation.x = clamp(head.rotation.x, deg_to_rad(-89), deg_to_rad(89))
Sorry the project is too big, but the nodes for the head can easily be remade
The text was updated successfully, but these errors were encountered:
Try using Input.MOUSE_MODE_CAPTURED instead of confined, see here.
Input.MOUSE_MODE_CAPTURED
Sorry, something went wrong.
I've used MOUSE_MODE_CAPTURED MOUSE_MODE_HIDDEN MOUSE_MODE_CONFINED_HIDDEN MOUSE_MODE_CONFINED but the mouse will not center itself
Your _ready() method is missing an underscore, so Input.mouse_mode = ... is never being called. It works on my end if I add the underscore 🙂
_ready()
Input.mouse_mode = ...
See godotengine/godot-proposals#3564.
that fixed it thank you so much :DDDD
No branches or pull requests
Tested versions
4.2.2 current steam version
System information
Windows 10 pro
Issue description
I have the same issue where the mouse is visible and isn't centered even after using
The mouse courser isn't hidden and is still on the window screen, I can move the position around but it stops when I hit the end of the window
Steps to reproduce
head is a 3d node that contains a camera 3d
Minimal reproduction project (MRP)
Sorry the project is too big, but the nodes for the head can easily be remade
The text was updated successfully, but these errors were encountered: