RC receiver to USB interface

Hello

I'm trying to use a Arduino nano to make a adaptor to connect my RC receiver to my laptop as a USB game controller but as I'm a complete new to Arduino, I'm in way over my head.

I've found several wiring diagrams on how to connect the receiver to the nano and I'm fairly confident with electronics so that side of this project is ok.

The problem is I don't know how to write the code. I've found a few codes online but can't get them to work.

Could someone please tell me where to find a suitable code (to use or modify) or how to write one

Thanks for your help
Daniel

ps sorry if this is the wrong section

The easiest way to use an Arduino as a "game-pad" is to make sure you buy the correct type of Arduino. For a project like this, you'll save yourself a TON of time and effort if you replace your nano with an Arduino that has a USB HID interface. Such Arduinos include the Micro, Leonardo, or Teensy 3.X/4.0.

I personally enjoy using the Teensy microcontrollers. This is because there are "game-pad" libraries automatically built in to the Teensy core that allow you to really easily make your Arduino into a game controller with minimal coding required.