Add mouse auto-connecting/pairing API
@hadess
Submitted by Bastien Nocera Link to original bug (#556301)
Description
In the form of an applet, for GDM to use.
For mice:
- check whether there is a mouse available through hal (has "info.capabilities" = "input.mouse", and isn't "Macintosh mouse button emulation").
- popup window saying no mouse is available, and ask user to turn the Bluetooth mouse on
- list all the discoverable devices, and when a mouse that's not paired/trusted is available, try to pair with it using "0000" as the pin
- dismiss dialogue automatically if any mouse is plugged in/already paired and turned on
For keyboards:
- check whether there is a keyboard available through hal (has "info.capabilities" = "input.keyboard").
- popup window saying no keyboard is available, and ask user to turn the Bluetooth keyboard on
- list all the discoverable devices, and when a keyboard that's not paired/trusted is available, try to pair with it after generating a PIN code, and the pin is entered on the keyboard side.
- dismiss dialogue automatically if any mouse is plugged in/already paired and turned on