Git Product home page Git Product logo

Comments (7)

ricardoquesada avatar ricardoquesada commented on May 30, 2024 2

fixed here: https://gitlab.com/ricardoquesada/bluepad32/-/commit/30bc9201d983940ebec813f0c0abff49ed65722e

I'll release a new version (probably) this weekend.

from bluepad32.

ricardoquesada avatar ricardoquesada commented on May 30, 2024 1

ah. good catch. I'll add it soon.

from bluepad32.

ste2425 avatar ste2425 commented on May 30, 2024 1

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.

ricardoquesada avatar ricardoquesada commented on May 30, 2024

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.

ste2425 avatar ste2425 commented on May 30, 2024

Sorry didnt get notifications on this for some reason.

Ill update and give it a test tonight.

Thanks for adding this feature!

from bluepad32.

ste2425 avatar ste2425 commented on May 30, 2024

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.

ricardoquesada avatar ricardoquesada commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.