ready for next steps i think....
i've had about enough of learning basics of what's going on with these devices by doing tutorials, recently having completed this one which has the pin report to the pc whether it's high or low.
if possible, i want to move forward now with trying to get some things wired up and programmed for the actual application i'm working towards.
just now, i've successfully tested this gamepad sketch on my Win 7 PC and it works
http://www.instructables.com/id/Add-USB-Game-Controller-to-Arduino-LeonardoMicro/?ALLSTEPSnow i'm stuck because i can't find what to do next. for my application, i need the leonardo to be acting as a game controller, not as a keyboard and/or mouse(?). that's because i need the leonardo to be recognized in xpadder, which it is after implementing step 1 from the instructable above.
xpadder is particularly important for this project because of the need for alt keymaps. As i’ve mentioned before, i’ve used alt keymaps in league before to succesfully get over 20 commands to be available on a limited number of keys, whether it be xbox or ps3 controller (both of which i’ve used in the past to play lol and developed RSIs using both).
My problem now is that i can’t find any other youtubes or other tutorial sources that discuss what happens when leonardo is acting as a game controller. I can only find stuff about the out-of-the box keyboard and/or mouse capabilities.
Can someone please point me in the direction of where i can get basic understanding of some things?
To begin with, i’d like to see and test an example of how to wire up a single switch to the board along with a sketch that causes the button to act as one of the buttons recognized by windows as a game controller button’s input.
From the comments for the instructable above...
“Connecting one button to an Arduino
is easy. You can just connect one side of the button to ground and the other side
to a digital input pin.”
So i guess that’s easy enough. But i still need a sketch that invokes the board’s internal pin resistors and tells the pin to be an input that sends a game controller button activation to the PC right?
If someone can help me with that, i’d really appreciate it.
Going forward, i gather that i will be limited to the 13 available pins on the board for my total switch count unless i use this...
http://forum.arduino.cc/index.php?topic=8558.0or this...
http://www.instructables.com/id/How-to-access-5-buttons-through-1-Arduino-input/neither of which i want to bother with due to my skill level.