Need a help with learning on arduino leonardo

I have both an arduino UNO and a Leonardo, and i want to use the Leonardo as a game controller with the joystick.h library, or any easy to use one. Are there any tutorials that will help me learn to write code and not just throw it at me with little to no explanation?

No idea.

What I would do is download the joystick library and start playing with examples. Next, if you don't understand something or need additional information, people here are always prepared to help.

If you have no coding experience, start with the standard IDE examples to learn a bit first. Same applies, ask if you don't understand.