REQUEST: Gamepad HID Demo

Oheyoo
Posts: 1
Joined: Thu Apr 12, 2018 3:32 pm

REQUEST: Gamepad HID Demo

Postby Oheyoo » Thu Apr 12, 2018 3:46 pm

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.

chegewara
Posts: 426
Joined: Wed Jun 14, 2017 9:00 pm

Re: REQUEST: Gamepad HID Demo

Postby chegewara » Mon Apr 16, 2018 5:46 pm

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

Who is online

Users browsing this forum: No registered users and 3 guests