I want to make our game have keyboard and gamepad controls simultaneously.
Is there an easy way to change this so that the S key and button 0 activate it when either is pressed?
buttons[(int)ButtonID.JUMP].SetKey(KeyCode.S);
I want to make our game have keyboard and gamepad controls simultaneously.
Is there an easy way to change this so that the S key and button 0 activate it when either is pressed?
buttons[(int)ButtonID.JUMP].SetKey(KeyCode.S);
Use the InputManager to define your actions and then you can bind the actions to any keys or buttons you want.
This documentation will get you started: Unity - Scripting API: Input