Hey guys,
I try to use my new xBox Controller Unity recognizes it (massage in console) but i cant use it i think i do something wrong so i looked up some different guides and tried things out but nothing seems to work my Input Settings are:
I try just to ask for right left up down and so on like this :
deadZone = 0.6f;
if(Input.GetAxis ("Horizontal") < -deadZone)//LEFT
{
//MoveVector -= new Vector3(Input.GetAxis(MoveSpeed),0,0);
TemporalVector.x = -MoveSpeed;
State = (int)Aenum.Left_m;
}
or this:
if(Input.GetAxis("Horizontal_R") > deadZone || Input.GetAxis("Horizontal_R") < deadZone || Input.GetAxis("Vertical_R") > deadZone || Input.GetAxis("Vertical_R") < deadZone)
{
shoot();
}
My code is fine if I just use my keyboard but don’t know how to use the controller…
pls help
