New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core / VideoCommon: refactor FreeLookCamera #9670
Conversation
ce41749
to
8a145d9
Compare
| @@ -319,10 +310,7 @@ void FreeLookCamera::DoState(PointerWrap& p) | |||
| else | |||
| { | |||
| const auto old_type = m_current_type; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also a warning (for the const std::string old_type_name = old_type ? to_string(*old_type) : "" line) on the ubuntu builder that old_type may be uninitialized. This might be a GCC bug, but it's odd. (It also isn't new to this PR). Possibly switching to an EnumFormatter here would work, though I'm not sure. It's probably fine to just ignore this.
f87d006
to
9f990a3
Compare
9f990a3
to
4fc97b1
Compare
…ntroller handle all the logic (field-of-view, movement, etc)
…es for defaults to the Free Look camera
…ldOfViewMultiplier' to better reflect usage
4fc97b1
to
5144756
Compare
|
This was approved by @Pokechu22, so I'm assuming it's good. Any objections to merging? |
This just refactors the
FreeLookCameraso things that it previously managed (dirty state, field of view, etc) come from the controller. Also the controller has been split into the base controller and a new controller calledCameraControllerInputwhich all current controllers derive from. This will be used in a future PR.