You are not logged in.

#1 2019-05-01 14:31:01

TiZ
Member
Registered: 2009-02-27
Posts: 58

Automate pairing of DualShock and other BT controllers

Hi there! I'm trying to work on a script or some other sort of solution that will allow me to more painlessly work with bluetooth game controllers like the DualShock family, and Nintendo's pro controllers. The important thing is that this is for a laptop that will be used in my area's competitive fighting game scene. Controllers will frequently come and go. I've identified two distinct problems with how things are now:

  • When you plug in a DS3 or DS4, a pairing authorization notification appears. With certain games running (SoulCalibur VI as an example), you can't actually interact with this notification. I would prefer that this notification not appear at all, and any pairing request made by any game controller be automatically accepted.

  • There are complications with controllers that the system has seen before, but have paired with other devices since the last time they were seen. So if I pair a controller with my computer, then go pair it with a PS4, then try to bring it back to my computer, the device just won't pair at all unless I remove the device and rescan or replug.

I wanted to create a script that I could run that would automatically pair any game controller it found in (n) seconds of scanning, but it runs into that second problem. If I find a device in pairing mode that the system already knows, and remove the device to allow it to create a new pairing, it can't pair the device because I removed it; that meant both removing the pairing that it already had and also the notion that it had even seen the device at all.

What can I do to overcome these hurdles?

Offline

Board footer

Powered by FluxBB