Commit: 7bb73f092aaf14f882de9735f8c2b3064b1f6b4c
Parent: 1f17efbac0d5b0e475073a3b98bcda9c23c8e8c7
Author: Bastien Nocera <hadess@hadess.net>
Committer: Szymon Janc <szymon.janc@codecoup.pl>
Date: 2017-11-30 10:53:45
Tree: 7482852e36b845ffbef2f44269d1e72ecb46b00c

plugins/sixaxis: Don't ignore previously setup devices 1. Setup PS3 controller through cable pairing 2. Remove device from BlueZ's database 3. Plug original PS3 controller back As we don't change the master bdaddr on the device itself, the joypad will likely be trying to connect to BlueZ, and fail to connect after a small period of time. But the device will appear connected just long enough for the cable pairing to say "hey, I already have this setup". Ideally, we would test for whether the device is temporary, or already trusted, but testing for whether we've setup its internal services *and* it's connected, rather than *or*, is sufficient.

Diffstat

M plugins/sixaxis.c | 15 +++++++- - - - - - - -

1 files changed, 7 insertions(+), 8 deletions(-)

View Full Diff | Patch