Question: mgba how to use controller?
Answer: Click on Tools > Settings, as shown below:
You'll arrive at the Settings window. ... 
To reconfigure a gamepad button, click on the white field and press the new gamepad button you want it set to. ... 
Optionally, you can click on Shortcuts to explore the emulator shortcut keys available for mGBA.