Hi I want to know if its possible to use the new input system in if statements.
The screenshots show my old Update() method which used input.keycode but i want to change that to the new system but haven’t had any luck.
Thanks in advance.
Hi I want to know if its possible to use the new input system in if statements.
The screenshots show my old Update() method which used input.keycode but i want to change that to the new system but haven’t had any luck.
Thanks in advance.
if (controls.player.fire.triggered)
Fire();
var look = controls.player.look.ReadValue();
Thank you!
InputSystem.GetDevice<Keyboard>()[Key.E].wasReleasedThisFrame
Is also valid as the in-line parallel to the old system.