You can connect a compatible game controller to your iPad through Bluetooth® or the Lightning or USB-C connector. You can customize the buttons and even add a second controller to get help from a friend.
Follow the instructions that came with the controller to put it in discovery mode.
On iPad, go to Settings > General > Game Controller > Buddy Controller.
Choose the primary controller, then choose the secondary controller.