ricardoquesada / bluepad32

Bluetooth gamepad, mouse and keyboard support for ESP32 and PicoW
https://bluepad32.readthedocs.io/
Other
503 stars 53 forks source link

quick connection to one gamepad #63

Open Daget84 opened 5 months ago

Daget84 commented 5 months ago

I made 8 cars for the kids that were controlled by gamepads; when they turn on the controls at the same time, it gets confusing. it becomes unclear which gamepad controls the car.

I would like to indicate in the firmware which gamepad the controller should work with. so that the controller does not search for all gamepads, but connects only to its own.

Now we have to turn on the machines one by one. It is difficult to explain to young children that they cannot turn on the machine and need to wait.

ricardoquesada commented 5 months ago

for Bluepad32 v3.x (the latest stable version) you can call the uni_bt_allowlist API.

https://gitlab.com/ricardoquesada/bluepad32/-/blob/main/src/components/bluepad32/include/uni_bt_allowlist.h

In v4, in addition to that API, you will be able to set allowed clients from a phone application