How to connect a joystick?

Because Apple doesn’t support native joystick support on iOS/iPadOS you’d need to connect a joystick, or other controller for that matter, over the network instead.
You’d need a PC/Mac or Raspberry Pi with a third-party app to connect the controller to.

After that you’re able to map certain commands to the buttons and axis from within IF.