With Testing Framework how do I properly do something like hold w key or hold left stick up for a few seconds?
inputTest.Click(keyboard.wKey);
seems to not throw any errors but also only shortly clicks it as far as I can tell(?)
The problem is when I try a UnityTest like this:
[UnityTest]
public IEnumerator PlayerTest()
yield return new WaitForSeconds(0.6f);
inputTest.Press(keyboard.wKey);
yield return new WaitForSeconds(2);
inputTest.Release(keyboard.wKey);
yield return new WaitForSeconds(0.1f);
}
it throws an error:
UnityEngine.InputSystem.InputAction:ReadValue<UnityEngine.Vector2> ()
RocketController:Thrusters () (at Assets/Scripts/Player/PlayerController.cs:75)
RocketController:FixedUpdate () (at Assets/Scripts/Player/PlayerController.cs:56)
Any ideas?
