Equivalent with the new Input System

What would be the equivalent of this code but using the new Input System? And how would that work for multiple input types, like a controller?

Can you still use some sort of KeyCode enum, but with an InputAction?

To be honest, I don’t know. It’s possible that you’d have to write a C# Action script instead of using the Action designer. More information can be found here: https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/Actions.html#creating-actions

This topic was automatically closed after 76 minutes. New replies are no longer allowed.

Privacy & Terms