- Home /
Question by
brother_philip · Aug 10, 2017 at 04:53 AM ·
inputgamepadgetaxis
if (Input.GetAxisRaw("horizontalP1") always does what 0 axis has assigned
I have this code:
if (Input.GetAxisRaw("horizontalP1") == 0f|| Input.GetAxisRaw("horizontalP2") == 0f)
{
Debug.Log("nothing pressed");
gap = false;
}
And It runs if I press Left or Right on the dpad Is this normal and is there a way to register when the dpad (horizontal) button is released
thanks in advance
Comment