From 75d01f9310b149acb85a903498277c92f506beca Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sat, 26 Mar 2022 20:37:02 -0700 Subject: [PATCH] CFinalInput: Set controllerIdx to 0 by default, fixes Samus wandering during cutscenes --- Runtime/Input/CFinalInput.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/Input/CFinalInput.hpp b/Runtime/Input/CFinalInput.hpp index 15a9afe00..ea3a342e5 100644 --- a/Runtime/Input/CFinalInput.hpp +++ b/Runtime/Input/CFinalInput.hpp @@ -23,7 +23,7 @@ struct SAuroraControllerState { struct CFinalInput { float x0_dt = 0.0f; - u32 x4_controllerIdx = -1; + u32 x4_controllerIdx = 0; float x8_anaLeftX = 0.0f; float xc_anaLeftY = 0.0f; float x10_anaRightX = 0.0f; @@ -36,8 +36,8 @@ struct CFinalInput { bool x22_enableAnaRightXP = false; bool x23_enableAnaRightYP = false; - float x24_anaLeftTriggerP; - float x28_anaRightTriggerP; + float x24_anaLeftTriggerP = 0.f; + float x28_anaRightTriggerP = 0.f; bool x2c_b24_A : 1 = false; bool x2c_b25_B : 1 = false;