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.
Analog JoyStick with Arduino - Tutorials
Analoge joystick on Arduino Leonardo - Project Guidance - Arduino Forum
Joystick Game Controller using Arduino Leonardo | Arduino, Game controller, Joystick