New Input System Trigger Shooting

Hi all,

this is my first post so sorry if this is the wrong place…

I’m making a 2D top-down shooter and trying to implement the new input system to easily use multiple gamepads. I would like to use the triggers to shoot but I can’t seem to find a way to only activate when I press or hold the trigger down. The way I have it now it shoots when I press it down, does nothing whilst it’s down and shoots again on release.

Effectively I’d like it to act the same way it would under Input.GetKey/GetButton.
Will provide code if needed <3

Thanks!

Follow the guide or look online. If you add a new button you can call an event in unity. Here add the code you would put in the getkey if statement

The new input system has a dedicated forum.