Hey there,
I’ve searched around for this problem and couldn’t find anything on this particular issue so sorry for a dupe if this is one.
However, in our game when getting the controller input everything works perfectly as long as the method is Input.GetButton. However, if the method is changed to Input.GetButtonDown() it suddenly stops working.
As sample of our code:
public void Update( )
{
bool test = Input.GetButtonDown( "EBrake_1" );
if( test )
{
Debug.Log( "Get Key Working" );
}
}
And the working code:
public void Update( )
{
bool test = Input.GetButton( "EBrake_1" );
if( test )
{
Debug.Log( "Get Key Working" );
}
}
I’m not too sure what the issue is, I’ve tried storing them in variables, calling them directly, etc. The only thing I can think of is that the GetButtonDown method doesn’t work with xbox one controller.