Smooth map zoom takes the wheel only on the map menu_cursor.c finds

With menu_cursor = 0 map_zoom_allowed answered yes everywhere outside aiming, scope, Ultrahand and lock-on, so the
wheel in free roam pushed the right stick's Y and tilted the camera, and the weapon wheel never got the wheel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-12 18:25:40 +03:00
1 parent 8ef46a245a
commit 2e494481d3
1 file changed
+3 -2
+3 -2
View File
@@ -97,8 +97,9 @@ static int map_zoom_allowed(uint64_t buttons) {
ctx == INPUT_CAM_ULTRAHAND_OBJECT || ctx == INPUT_CAM_LOCK_ON) {
return 0;
}
const char *mc = cfg_get("TOTK_MENU_CURSOR");
return (mc && !strcmp(mc, "0")) ? 1 : menu_cursor_map();
// Only the map menu_cursor.c finds: with menu_cursor = 0 (or on 1.2.1) the map is not read, and a fallback to
// "allowed" would push the right stick's Y in free roam, where it tilts the camera.
return menu_cursor_map();
}
static int weapon_wheel_allowed(uint64_t buttons, int right_down, int already_active) {