Beispiel #1
0
 private static void CKeyDef_Postfix(KInputController.KeyDef __instance)
 {
     if (Instance != null)
     {
         __instance.mActionFlags = ExtendFlags(__instance.mActionFlags,
                                               Instance.GetMaxAction());
     }
 }
Beispiel #2
0
 /// <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);
     }
 }
Beispiel #3
0
 /// <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());
 }