lemmingDev / ESP32-BLE-Gamepad

Bluetooth LE Gamepad library for the ESP32
Other
979 stars 165 forks source link

The special buttons have no example ? #173

Closed SamuStars closed 3 months ago

SamuStars commented 1 year ago

Hi, I was wondering if you could make an example in which the "pressSpecialButton" function is explained. I need this function to open the browser on a pc, thanks!

lanshicai commented 1 year ago

examples/SpecialButtons

lanshicai commented 1 year ago

There are examples, but I use the volume control to no avail. If you know why, please let me know. thanks!

LeeNX commented 1 year ago

Currently supported special buttons are as follows buttons:

I think it's up to the target host OS to implement support and functions (or possible an app to hook the special buttons action).

The above should be found in the HID Usage Tables - https://www.usb.org/sites/default/files/hut1_3_0.pdf ie: Volume Increment - Usage ID: 0xE9 - Consumer Page: 0x0C

Thou I have not yet tested any of the special buttons myself, might give it a try in the future and report back.

I would start with checking that the BLE Client (ESP32) is paired with the BLE Server (OS Host). Then use something like the BLE Scanner and monitor things are working and reporting as expected.

lanshicai commented 1 year ago

I use T-vK/ESP32-BLE-Keyboard to control the volume normally.

lanshicai commented 1 year ago

I use T-vK/ESP32-BLE-Keyboard to control the volume normally.

lemmingDev commented 3 months ago

As above Those special keys only work in Android ESP32-BLE-Keyboard will do volume control in Windows