Mapping to Button South - however action only happens when pressing Button North on Joypad

Hi

I am relatively new to Unity and especially this new Input System so please bear with me if this is something obvious.

I have setup a button press action for Jump as follows:

And in code I am referencing/actioning it as follows:

if (Input.GetButtonDown("Jump"))
{
     ...
}

However, the player will only ever jump when I actually press the north button. This is the case for no matter which button I set in the Input Controller (East, West, South and North). The player will only ever jump when the North button is pressed.

Please let me know if there is any more info I could provide but am wondering if anyone else has experienced this. I am at a bit of a loss here. I am using an X-Box USB controller (it is probably about 8 years old by now) but not expecting that to be a problem.

I am kicking myself as I think I realise the problem is simply that the C# I am using is for the old Input System and not using the new one…! DOH! I will update and reply accordingly.

Yeah, after instantiating the PlayerActionControls object in the C# script, I replaced the above code with the following:

        float jumpButtonPressed = playerActionControls.Player.Jump.ReadValue<float>();

        if (jumpButtonPressed == 1 && isGrounded)

And all seems to work fine as expected! Schoolboy error!