Skip to content

fix invert y option not affecting mouse camera#31

Open
EgeDogukan wants to merge 1 commit into
WCGH:mainfrom
EgeDogukan:fix/mouse-invert-y
Open

fix invert y option not affecting mouse camera#31
EgeDogukan wants to merge 1 commit into
WCGH:mainfrom
EgeDogukan:fix/mouse-invert-y

Conversation

@EgeDogukan

@EgeDogukan EgeDogukan commented Jul 8, 2026

Copy link
Copy Markdown

fixes #2

the invert y toggle only affected the controller right stick, mouse camera pitch ignored it. this applies the same inversion to the mouse-look path in player_movement_controller.gd, mirroring the existing right-stick branch. the movement controller is shared, so this covers dmu, fru, and dsr alike. live toggle updates already work through on_variable_saved, so no extra wiring was needed.

also fixes a small copy-paste typo in on_variable_saved where the x sensitivity was rescaled with the y base constant (no behavior change, both constants are equal).

tested in the fru sim (godot 4.7, macos): mouse pitch inverts with the toggle on and reverts with it off, including when toggled mid-run. the controller stick path is unchanged (no gamepad on hand to re-test).

apply the saved invert_y setting to mouse pitch input, matching the
existing controller right-stick behavior. also fix a copy-paste typo
where the x sensitivity was rescaled using the y base constant (no
behavior change; both constants are equal).

fixes WCGH#2
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.

No Invert Y option for mouse

1 participant