Skip to content

The function Input.MOUSE_MODE_CAPTURED, is failing #62010

@HectorVe

Description

@HectorVe

Godot version

3.4.4

System information

Win10, OpenGL3

Issue description

When the function is called, and I try rotate the Camera3D, the movement is incorrect of mouse

Steps to reproduce

func _input(event):
if event.is_action_pressed("ui_cancel"):
mode = true if !mode else false

	if mode:
		Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
		get_tree().paused = true
	else:
		# THE BUGED FUNCTION IS THE NEXT
		Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
		get_tree().paused = false

Minimal reproduction project

corregir_error.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions