How to get Input for Left, Right, Up, Down on Ps4/Xbox Controller?

I have a mini game where you have to press X, O, Traingle and Square on the controller in order to open a door. But its sooo messy to write a script that suits both Xbox and Ps4 controllers so i thought I would
replace the buttons with directions, Left, Right, Up, Down…
How do I access these direction in script?

 if (Input.GetButtonDown("Fire1") || Input.GetButtonDown("Fire2") || Input.GetButtonDown("Fire3") || Input.GetButtonDown("Fire4") && miniGame.activeSelf)

This is the current button assignments :S
Tahnsk in advnace!

1 Like

I looked into that but it doesnt show How to write the Input inside the script… :confused:
You mean I should have Left, Right, Up, Down in second controller colum?