chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

Inputs should be released when hidraw controller disconnects #26

Closed Ape closed 10 years ago

Ape commented 10 years ago

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.

Ape commented 10 years ago

This is fixed with 52ef4b9, please pull.

chrippa commented 10 years ago

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.