RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 177 forks source link

Added option to invert orbit camera controls #3108

Closed CuriousMike56 closed 8 months ago

CuriousMike56 commented 10 months ago

This adds an "Invert orbit camera" (CVar io_invert_orbitcam) option to Controls settings, inverting mouse and numpad controls. image

In addition, mouse cursor now hides when moving the camera. Also wanted to make the cursor auto hide after a few seconds of inactivity like in previous RoR versions, which apparently broke with the switch to the DearIMGUI-based cursor. Code for this seems to exist but doesn't appear to work correctly: https://github.com/RigsOfRods/rigs-of-rods/blob/26411c1a86ae807a3c6eef504259276baee26f22/source/main/gui/GUIManager.cpp#L294-L300 Moving this code to CameraManager causes the mouse to become permanently hidden.

Old code: https://github.com/ohlidalp/ror-legacy-svn-trunk/blob/0a55a993899d6a06cdc58fd98b5b675b371eb89a/source/main/gui/GUIManager.cpp#L142C1-L147C3