I made a gaming control panel using an Arduino Leonardo to play simulators. Currently using it for DCS World, but it should work in most games just like any joystick / gamepad.
Simple switch panel and throttle for Flight Sim - Project Guidance - Arduino Forum
DIY Joystick Game Controller using Arduino Leonardo and Joystick Module
Joystick Shield per scheda di espansione Arduino funzione tastiera e Mouse analogici - AliExpress
Analoge joystick on Arduino Leonardo - Project Guidance - Arduino Forum
Simple switch panel and throttle for Flight Sim - Project Guidance - Arduino Forum
Turn an N64 Controller Into a USB Gamepad Using an Arduino Leonardo | Arduino, Usb, Control