more than one alt buttons?

In InputManager I can set ‘Positive Button’ and ‘Alt Positive Button’ such that they affect the same functionality. But how could I set more than one ‘Alt Positive Button’?

The question is six years old, but it’s still at the top of Google, so I’m answering it for the sake of others with the same problem. I’m not certain this is the best answer, but it’s working for me so far.

It feels hacky, but you can add multiple items with the same name but with different input items. For example, if you want a, b, and c to all trigger jumping, you make two items called Jump, use “a” and “b” for the positive and alt positive buttons in the first, then “c” for the positive button in the second instance of Jump.

Then, in your code, if you write “if (Input.GetButtonDown(“Jump”)”, it will return true if any of those three keys are pressed.

1 Like