godotengine / godot-demo-projects

Demonstration and Template Projects
https://godotengine.org
MIT License
5.44k stars 1.52k forks source link

Use `InputEventMouseMotion.screen_relative` for resolution-independent mouselook #1055

Open Calinou opened 1 month ago

Calinou commented 1 month ago

This avoids lengthy workarounds to ensure mouselook sensitivity doesn't change based on resolution.

As a bonus, this also fixes mouse sensitivity being too high on aspect ratios narrower than the project's default.

Mouse sensitivity was also increased in some projects for consistency with other projects.

All demos were tested.

Do not merge before 4.3 is released as this relies on a feature only present in 4.3.

aaronfranke commented 1 month ago

(needs to wait for 4.3 to be released and the conflicts to be resolved, but otherwise approved)