Help on how to use a LEONARDO as a "game pad"

I've checked a few of the suggestions offered when I typed in the subject, but none really helped.

I have been told that the Leonardo is the one I want as it works better as a HID (game pad - if you will) than the others.

I have also seen a hack to allow use of an analogue joystick using the Leonardo.

The scenario is that I have a game and the key map is confusing at best.
As I have other hardware plugged in, I can assign their buttons to control things by selecting what I want to do, then when prompted, press the desired button and it is assigned to control that thing.
It shows up as a game controller rather than key press, so that is even better.

But I'm new to this sort of thing and so have no idea what is involved.
I'm guessing I tell the Arduino it is a Game controller and assign pins as inputs.
I don't know if there is much to that or not, but for now let's say there isn't too much in making that part work.

Then I would plug it in, load the game and in the config section where I assign key inputs, I would then click on what I want to be controlled, get prompted to press the button and press one of the buttons connected to the Leonardo.

And that's that.

Or so I hope.

Would someone mind helping me understand what I need to do?
As I explained my understand is this:
I tell the Leonardo to be a game pad configure/program the GPIO pins as inputs (pull_up needed I'm guessing) and put a switch to pull the GPIO pins low.

Then when it is plugged in, the game will accept it's inputs to control things.

Thanks in advance.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.