On Wed, 2011-06-08 at 15:09 +0200, Antonio Ospite wrote:
- When the controller is connected via USB the led is set, but then
it
goes blinking again waiting for the PS button to be pressed,
maybe
we should wait for the PS button before setting leds, maybe with
a
simple blocking read() on the hidraw device.
One hard thing to handle is when the device is already in use via USB,
it should automatically connect via Bluetooth when unplugged. I'm not
sure this works right now (I'm a bit hazy on the interaction with the PS
button tbh).
- When the controller is connected via USB after it is working over
BT, it is seen as a second controller and the second led it
turned
on, should we force BT disconnection on USB connection?
As we can identify the device uniquely through its bdaddr, I'd say yes.