- Home /
360 Trigger Pressing both Triggers at the same time
So, I am sorry if this is answered, but I am using the Left Trigger and Right Triggers on my 360 controller to fire the left and right weapons accordingly. So I have
if(Input.GetAxis("P1Trigger") == 1){ FireLeft(); }
if(Input.GetAxis("P1Trigger") == -1){ FireRight(); }
When they aren't pressed the 3rd Axis is 0, but it seems that when both are pressed the 3rd Axis is also 0. I know that if I create P1LtTrigger and P1RtTrigger and invert 1 of them I can get them to fire both on one trigger press, but that's not what I am need.
Answer by AngryOldMan · Apr 03, 2011 at 09:12 PM
Can you seperate your axis in the input section. so instead of P1Trigger you will have P1LeftTrigger and P1RightTrigger
http://answers.unity3d.com/questions/21111/triggers-on-the-360-controller-treated-as-one-axis
this questions been bugging me so I looked into it a bit more and found this http://speps.fr/xinputdotnet which is a website for a piece of 3rd party software which (i believe) allows you to skip over the DirectInput that Unity uses to map controllers and uses XInput instead.
How do you separate the axis if the triggers are the 3rd Axis by putting them separate and still selecting 3rd Axis you still are doing the same thing aren't you?
Did you even try it before posting that comment? They are only supposed to be mapped between 0 and 1. Take a look at the other questions regarding this matter. Update in answer
Well clearly I had tried that since in my Question I have indicated putting PlLtTrigger and P1RtTrigger, but I apparently don't understand the mapping. For Axis you choose 3rd as that's the trigger and according to what I have read its -1 0 1, so I don't understand.
read the updated post,people have had the same problem. Not sure if there is a solution but give them a try, maybe you will work something out in doing so.
Alright Ill keep messing with it, I was working another issue, but thanks for trying to clear it up for me.