Button input ignored

I already had this problem once. That time, I solved the issue by moving the project folder to a different location, delete the temp folder and relocate it to its original position. It doesn’t work anymore…

I even tried creating a new project entirely, but Unity simply ignores this. The weirdest part is that, even though the button was shown to be pressed in an input debugger, there’s also a print in Update simultaneously that shows that the button is “not being pressed” with its default constant value. Basically, the debug that you access in analysis for inputs shows that it works, but my C# print shows something else. I know that is not a code problem because is simply in Update. Also, the stuff that is supposed to happen when you press those buttons (L2 and R2 of a dualsense that is recognized) is completely ignored as well. Again, I know is not a code problem and a Unity bug instead.

So I have 2 questions:

  • What has been causing this?
  • How to fix it once and for all?

Please could you post the code so that we can help with the button issues, because maybe you made a simple mistake in the code.

–