Comments (7)
fixed here: https://gitlab.com/ricardoquesada/bluepad32/-/commit/30bc9201d983940ebec813f0c0abff49ed65722e
I'll release a new version (probably) this weekend.
from bluepad32.
ah. good catch. I'll add it soon.
from bluepad32.
In that case it is behaving as was intended, however as you say that may not be most desired.
The use case i have is I'm building a consolized PSP with this library being at its core. The Arduino is always on awaiting Bluetooth connections so it can turn on the PSP when a paired gamepad connects, just like you can with an Xbox etc.
With discovering existing controllers / pairing new controllers being the same action this would mean if i was trying to sync a controller to a different console the Arduino could potentially steal that controller. When in reality all i want is for it to listen for an already paired controller.
I think were on the same page with this but just wanted to clarify :)
from bluepad32.
fixed.
Requires "bluepad32-arduino" v1.1.2 (or latest git version as of today)
Requires "bluepad32" v3.5 (or latest git version from develop
branch as of today)
I'll release stable binaries once I finish v3.5.
LMK whether it works for you. ty!
from bluepad32.
Sorry didnt get notifications on this for some reason.
Ill update and give it a test tonight.
Thanks for adding this feature!
from bluepad32.
Hi @ricardoquesada Sorry to re-open an old issue but only just got round to playing with this (family life got in the way!)
I seem to be experiencing some potentually odd behaviour with this feature and would like to confirm its intended behaviour.
I have two controllers. An Xbox one S, and a PS4. The Xbox is already paired, the PS4 is not.
If i set enableNewBluetoothConnections(false)
do we expect the Xbox controller to still connect but the PS4 not too?
If so then its not behaving as intended.
enableNewBluetoothConnections(false)
seems to stop all controllers connecting regardless of if they are already paired or not.
If this is intended behaviour is there a way to block pairing of new controllers but allow already paired controllers to connect?
This in on an Arduino nano 33 IOT.
Using firmware version 3.5.0-beta1 and version 1.1.2 of the arduino library.
Thanks again for providing such a brilliant library BTW :)
from bluepad32.
yeah... two things:
a) probably the name of the API is confusing. The intended behavior is that no connections are allowed. But if there is a connected game, it will continue to be connected. But if that gamepad disconnects, it won't be able to connect again.
b) My intention was to do what a computer/phone does. If it is in "discover / pair" mode, it will allow new connections.
But if it is not, then you cannot connect to... even if it has been paired before (???)
If that's not the case..... mmm.... thinking aloud, that's not the case... I can connect my headphones to my phone without opening the "pair/discover" dialog.
I'll fix that....
from bluepad32.
Related Issues (20)
- DS4 setRumble HOT 2
- [Bug]: Pairing/Connection issues at startup HOT 5
- The ESP32 WROOM32 development board is getting hot. HOT 1
- [Bug]: Not reporting Y-axis data on ESP32 C3 from Xbox One Controller HOT 2
- [Bug]: Stadia Controller error: 'NINA_GPIO0' was not declared in this scope HOT 3
- Uno R4 HOT 2
- [Bug] Bluepad crashing when connecting `Switch Pro controller` devices HOT 7
- [Bug]: `uni_hid_device_get_idx_for_instance()` reports index 0 for all devices HOT 6
- quick connection to one gamepad HOT 1
- Add Bluepad32 to Board Manager HOT 2
- Arduino Nano ESP32 / Lolin S3 mini: Serial output not working HOT 10
- BLE Controller for the ESP32S3 HOT 15
- [Bug]: uni_bt_allowlist.h not found HOT 1
- Support for "TikTok Ring Remote Controller" HOT 10
- [Bug]: Xbox controllers using FW 5.x don't support rumble HOT 9
- Unable to connect to esp32 in AP mode HOT 29
- esp-idf using Rust (esp-rs) | Generate FFI Bindings HOT 2
- BluePad32 and RP2040 only working when connected to PC and arduino IDE open HOT 11
- Adaptive trigger support for dualsense HOT 5
- Issue #70 is not resolved by implementing the code change. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluepad32.