Player settings

This commit is contained in:
Rendo 2025-11-30 16:38:57 +05:00
commit e8127ee423
8 changed files with 109 additions and 5 deletions

View file

@ -29,7 +29,7 @@ func _process(delta: float) -> void:
func _input(event: InputEvent) -> void:
if not is_multiplayer_authority() or disabled:
return
if event is InputEventMouseMotion:
if Input.mouse_mode == Input.MouseMode.MOUSE_MODE_CAPTURED and event is InputEventMouseMotion:
rotate_camera(-event.relative.x * ClientSettings.SENSITIVITY,-event.relative.y * ClientSettings.SENSITIVITY)
func rotate_camera(x,y) -> void: