Skip to content

Vertical Camera Angle wrapping fix#698

Open
AL2009man wants to merge 1 commit intofgsfdsfgs:portfrom
AL2009man:CameraAngleWrappingFix
Open

Vertical Camera Angle wrapping fix#698
AL2009man wants to merge 1 commit intofgsfdsfgs:portfrom
AL2009man:CameraAngleWrappingFix

Conversation

@AL2009man
Copy link
Copy Markdown

@AL2009man AL2009man commented Feb 1, 2026

during the work on #648, i accidentally discovered a solution to the Reset Camera function when using SteamInput's Reset Camera function, or any other Input Remapper that has a similar function.

for context: Steam Input has the ability to assign a Reset Camera (referred as "Reset to Horizon") to any game to mimick a similar functionality, assuming the Angle Calibration is already done in advance. Unfortunately, if a game decides to put a 90 degree clamp limit: then it will not work as intended.

here's the bug in action:

compressO-perfectdarkangleclampfixbefore.mp4

This PR attempts to remedy this situation by removing the clamp limit entirely.

compressO-perfectdarkangleclampfixafter.mp4

While the bug can still persist when in a specific vertical angle, it should be lessen. This should at least have Input Remapper-based Reset Camera function to play nicely within the confines of the Mouse Input.
For Steam Input players: This will serve as a substitute until #682 gets added in.

Solves a issue when using Input Remapper's Mouse-based Reset to Horizon camera function (e.g. Steam Input), where the recenter couldn't stay centered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant