Accessing List of Axes in the Input Manager

Hi all,

Does Unity provide a way to access the list of inputs or axes in the Input Manager?

For example, instead of: Input.GetButton("Fire1")

Can you do this? Like how you would access an array or enum.

Input.GetButton(InputManager.Axes[index]) or Input.GetButton(InputManager.AxisName)

Want to avoid mis-spelling problems as far as possible.


Thanks in advance for your help.

Not yet. The lack of scripting access to the InputManager was and still is one of the greatest shortcomings of Unitys input system. According to this feature request it’s a planned feature but it might take some time (weeks, month, years, …) until it’s actually implemented.

So at the moment the answer is simply: No.