Hello friends.
I am a beginner and I have difficulties for the 10th axis button to be executed only once when pressed.
This input I created to trigger the RT button on the xbox control, below I have an example of how I’m trying to use, when pressing the print command is executed many times.
//Input.GetAxisRaw("RT") represents 10th axis (Joysticks)
if (Input.GetAxisRaw("RT") == 1)
{
print(true);
}
if (Input.GetAxisRaw("RT") < 1)
{
print(false);
}