/// <summary> /// Run this in your game Loop, it executes all the logic of ProInput system /// <para>This is needed for the joysticks and Emulator systems.</para> /// </summary> /// <param name="delta"> input a deltaTime, used mostly for the joystick Emulator </param> /// <param name="debug"> is Debug Enabled? </param> public static void UpdateInput(float delta, bool debug = false) { if (debug) { if (waitingForKeyPress) { InputMapper.GetSwitchPress(KeyDetected); } else { if (debugButton.IsUp()) { waitingForKeyPress = true; Debug.Log("-- Press Any Key, Or touch any Stick --"); } } } UpdateControllerInput(delta); }