//system handling private void AddToStaticArray() { if (InputX.timedInputArray == null) { InputX.timedInputArray = new TimedInput[] { this } } ; else { TimedInput[] newArray = new TimedInput[InputX.timedInputArray.Length + 1]; for (int i = 0; i < InputX.timedInputArray.Length; i++) { newArray[i] = InputX.timedInputArray[i]; } newArray[InputX.timedInputArray.Length] = this; InputX.timedInputArray = newArray; } }
public static float Axis(TimedInput timedInput, bool firstFixedOnly = false) { return(Axis(timedInput.inputs, firstFixedOnly)); }
public static bool Up(TimedInput timedInput, bool firstFixedOnly = true) { return(Up(timedInput.inputs, firstFixedOnly)); }
public static bool Pressed(TimedInput timedInput, bool firstFixedOnly = false) { return(Pressed(timedInput.inputs, firstFixedOnly)); }
/// <summary> /// Determines whether two inputs are equal. /// </summary> /// <param name="timedInput"> /// The input to compare. /// </param> /// <returns> /// A value indicating whether two inputs are equal. /// </returns> public bool Equals(TimedInput timedInput) { return this.inputValues == timedInput.inputValues && this.elapsedTime == timedInput.elapsedTime; }