/// <summary> /// Applied to KInputController to adjust array lengths if necessary. /// </summary> private static void QueueButtonEvent_Prefix(ref bool[] ___mActionState, KInputController.KeyDef key_def) { if (KInputManager.isFocused) { int max = PActionManager.Instance.GetMaxAction(); key_def.mActionFlags = PActionManager.ExtendFlags(key_def.mActionFlags, max); ___mActionState = PActionManager.ExtendFlags(___mActionState, max); } }
/// <summary> /// Applied to KeyDef (constructor) to adjust array lengths if necessary. /// </summary> private static void CKeyDef_Postfix(KInputController.KeyDef __instance) { __instance.mActionFlags = PActionManager.ExtendFlags(__instance.mActionFlags, PActionManager.Instance.GetMaxAction()); }
/// <summary> /// Applied to KInputController to adjust array lengths if necessary. /// </summary> private static void IsActive_Prefix(ref bool[] ___mActionState) { ___mActionState = PActionManager.ExtendFlags(___mActionState, PActionManager. Instance.GetMaxAction()); }