I am using Unity’s new Input System package, which is pretty great. I am trying to make a jump mechanic for first person movement, but the jump is triggered both when the jump button is pressed AND when it is released. I have set the Interaction to Press > Press Only, but it still triggers the jump on both press and release. How can I fix this?
Here is the jump code:
public void OnJump(InputAction.CallbackContext context)
{
velY = jumpVel;
}