mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-22 21:15:57 +00:00
Add a right-stick camera speed setting that scales the game's own turn rates
The game's five camera sensitivities (Options, Very Low to Very High) turn the camera at the rates in the StickSensitivity array of PlayerCamera.game__component__PlayerCameraParam.bgyml, 0.8 to 2.4. stick_sens (0.1 to 3, read at start) multiplies that array: camera_speed.c decompresses Pack/Actor/PlayerCamera.pack.zs with the RomFS's pack.zsdic, scales the floats in place and compresses it again with the same dictionary, and romfs.c serves the result from <profile>/camera/. Scaling the stick's deflection instead could not raise the top speed, since a full tilt cannot go further. The mouse camera reaches the game as a right-stick deflection, so input_win.c mouse_camera divides it by the same factor and mouse_sens alone keeps setting the mouse's speed. romfs.c heapdef_overlay is split into read_served and serve_generated so both generated files share the reading, writing and overlay bookkeeping.
This commit is contained in:
1 parent
fb06577c23
commit
32fc1b35e1
9 files changed
+263
-39
No files matched your search
@@ -573,6 +573,7 @@ static void tab_controls(float scale) {
|
||||
opt_slider("TOTK_RUMBLE_STRENGTH", UI_MENU_RUMBLE_STRENGTH, 0, 300, UI_MENU_RUMBLE_STRENGTH_DESC, 10, "%.0f %%");
|
||||
opt_slider("TOTK_RUMBLE_CURVE", UI_MENU_RUMBLE_CURVE, 0.2f, 1.5f, UI_MENU_RUMBLE_CURVE_DESC, 0.05f, "%.2f");
|
||||
opt_toggle("TOTK_RUMBLE_TRIGGERS", UI_MENU_RUMBLE_TRIGGERS, UI_MENU_RUMBLE_TRIGGERS_DESC);
|
||||
opt_slider("TOTK_STICK_SENS", UI_MENU_STICK_SENS, 0.1f, 3, UI_MENU_STICK_SENS_DESC, 0.05f, "%.2f");
|
||||
opt_slider("TOTK_MOUSE_SENS", UI_MENU_MOUSE_SENS, 0, 10, UI_MENU_MOUSE_SENS_DESC, 0.1f, "%.1f");
|
||||
binds_rows(scale);
|
||||
opt_end();
|
||||
|
||||
Reference in new issue
Block a user