From fa8e10ac4c15458b76ea83d958f7d2437766f68f Mon Sep 17 00:00:00 2001 From: thecozies <79979276+thecozies@users.noreply.github.com> Date: Wed, 29 May 2024 10:30:08 -0500 Subject: [PATCH] override analog cam while left stick is active in deku flower --- patches/camera_patches.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/patches/camera_patches.c b/patches/camera_patches.c index 1c306ac..f8b47cb 100644 --- a/patches/camera_patches.c +++ b/patches/camera_patches.c @@ -67,7 +67,7 @@ void update_analog_cam(Camera* c) { analog_cam_active = false; analog_cam_skip_once = false; } - + // Record the Z targeting state. prev_targeting_held = targeting_held; @@ -1884,8 +1884,11 @@ bool get_analog_cam_active() { return analog_cam_active; } -void set_analog_cam_active(bool is_active) { - analog_cam_active = is_active; +// Calling this will avoid analog cam taking over for the following game loop. +// E.g. using left stick inputs while in a deku flower taking priority over right stick. +void skip_analog_cam_once() { + analog_cam_skip_once = true; + analog_cam_active = false; } // Calling this will avoid analog cam taking over for the following game loop.