Parent: 4002cf271e3939714296c535a1ed8d4f0d5ac005
Author: Jeff Hansen <x@jeffhansen.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-03-05 07:07:48
Tree: 94e4012242ecd6b37c4e90eca14546e73bc0cea5
input: Set up uinput device again, if it was previously closed. If you connect a PS3 controller to bluetoothd as an input device, then take the batteries out of a PS3 controller, then put them back in and push a few buttons, it will eventually cause an error which causes the uinput socket to be closed. It will then re-connect to bluetoothd, but the uinput socket fd will be -1, so it needs to be set up again after the re-connect.
Diffstat
| M | input/fakehid.c | | | 6 | ++++- - |
1 files changed, 4 insertions(+), 2 deletions(-)