If a hidraw controller is disconnected while some buttons are pressed, the buttons will stay down. This might not matter so much with joystick input, but it is really annoying with mouse or keyboard bindings. Analog stick mouse will also keep moving even after the controller is disconnected.
All inputs should be released when the controller is disconnected, even if we don't want to remove the uinput devices.
Thanks, but I dislike solving this by creating a fake report since it will affect other actions, I decided on a simpler fix in cdd0ae248fad290931f38d06b3f5469f06fd5aea.
If a hidraw controller is disconnected while some buttons are pressed, the buttons will stay down. This might not matter so much with joystick input, but it is really annoying with mouse or keyboard bindings. Analog stick mouse will also keep moving even after the controller is disconnected.
All inputs should be released when the controller is disconnected, even if we don't want to remove the uinput devices.