Revert "Make right mouse down + scroll wheel adjust FOV instead of master controller"

This reverts commit 71ff6a60d0.
This commit is contained in:
Ryba04
2024-09-13 17:35:24 +02:00
parent f9d04f7397
commit fcfd681b44

View File

@@ -281,8 +281,8 @@ drivermouse_input::move( double Mousex, double Mousey ) {
void
drivermouse_input::scroll( double const Xoffset, double const Yoffset ) {
if( Global.ctrlState || m_buttons[1] == GLFW_PRESS ) {
// ctrl + scroll wheel or holding right mouse button + scroll wheel adjusts fov
if( Global.ctrlState ) {
// ctrl + scroll wheel adjusts fov
Global.FieldOfView = clamp( static_cast<float>( Global.FieldOfView - Yoffset * 20.0 / Timer::subsystem.mainloop_total.average() ), 15.0f, 75.0f );
}
else {