Page 1 of 1

REQUEST: Gamepad HID Demo

Posted: Thu Apr 12, 2018 3:46 pm
by Oheyoo
Hello,
can somebody point me towards the correct piece of Documentation or Code to simulate a Gamepad over Bluetooth?
There are examples for Keyboards and Mice out there, however I can't seem to get a Gamepad-Demo working, especially since the Documentation on this is so sparse.
I was really expecting the Software/Documentation to be more mature, considering how easy the USB equivalent is on an Arduino Leonardo.

Re: REQUEST: Gamepad HID Demo

Posted: Mon Apr 16, 2018 5:46 pm
by chegewara
Hi,
sorry if my documentation dont meet your expectations, but i thought so example code will be enough. Its very easy to build gamepad with just as little code changes. Its enough to change reportMap, add interrupts for buttons and build proper structure according to reportMap. But if you havent seen it before then here is example:
https://github.com/nkolban/esp32-snippe ... Device.cpp

and you are welcome to open issue with questions on github, i will help as much as i can.

Or you can try with this stack:
https://github.com/bluekitchen/btstack/ ... er/example