Page 1 of 1

[SOLVED] Emulate Joypad Instead of Keyboard w/ Teensy 2.0

Posted: Wed Nov 29, 2017 10:14 pm
by skorpien
This is more of a curiosity considering I've managed to program my Teensy 2.0 as a USB keyboard using the code that was so generously shared in these forums (you have my eternal gratitude btw).

As I was programming my board, I saw all of the devices that it can emulate and got to wondering if it would be a good idea to program it as a joypad instead of a keyboard.

I'm sure there's a reason why the guides are for programming it as a keyboard, but for the life of me I couldn't find what that was. Are there compatibility issues with doing it that way?

Re: Emulate Joypad Instead of Keyboard w/ Teensy 2.0

Posted: Mon Dec 04, 2017 11:13 pm
by moooarcuuuus
Joypad works great. Have a look at Kites code(a), he uses (b). It is very simple, see "void setGamepad()" in "input.ino". The most of his code is serial communicalion and LCD stuff.

(a) https://github.com/geebles/Super-AIO/tr ... o/SAIO_v2a
(b) https://github.com/NicoHood/HID

Re: Emulate Joypad Instead of Keyboard w/ Teensy 2.0

Posted: Wed Dec 06, 2017 9:28 am
by skorpien
Sorry for the late reply, I just saw this. Thanks so much! I've got some reading and programming to do :)