It works well for things like player control, where I add a Player Input component to my player game object and I route the events to the player control script.
It also works well for the canvas, where I have a Button and the EventSystem’s Input System UI Input Module script takes care of mouse move/hover/click.
But how can I assign a keypress to a specific Button using this new InputSystem approach? And is there a way to do it without hardcoding things in a script?
In my case, I have a ‘Play’ button on the start screen. I want it to work when someone clicks it with a mouse or presses P (which I might also extend in future to a gamepad too).