Help with Capture Mouse Movement in _process for a Physics Game

Godot Version

Godot 4.7.2

Question

I need some help with mouse movement events in my rigidbody character. I have the camera has a child of the rigidbody3d and uses event.relative() in its _input() function to capture the mouse movement and rotate the camera. However, because _input is frame independent, moving my mouse a lot causes the game to freeze. Is there a way to capture the mouses movement in _process() similar to Unities Input.get_axis(“mouse_x”) method?

You could just do get_viewport().get_mouse_position() from process. That would get the position once per frame.