gblues f33fa3d566 Fix pad leak in kpad (wiimote) driver
== DETAILS

This is the wiimote version of the same bug I previously fixed in the HID
driver, where disconnected pads didn't actually invoke the unregister task.

This has an extra wrinkle, in that we *also* need to invoke the unregister
task when the wiimote device changes (e.g. user plugs in a nunchuk or
classic controller).

Now, there's still the problem of the "disconnect" detection being broken; so
a consequence of this commit is OSD spam. However, the actual wiimote input
is processed successfully and there's no noticeable issues in the pad
handling.

== TESTING

Using Mario 3, I played a level in which I started as bare wiimote, then
hot-plugged the nunchuk, and the input switched automatically. At  the
end of the level, I hot-unplugged the nunchuk and it automatically reverted
to horizontal layout; and the pad remained 100% responsive the entire time.
2018-04-24 21:20:08 -07:00
..
2018-01-06 09:44:03 -03:00
2018-01-06 09:44:03 -03:00
2018-01-06 09:44:03 -03:00
2017-08-04 21:30:49 +10:00
2017-08-04 21:30:49 +10:00
2016-11-02 22:06:15 +01:00
2018-01-13 12:16:37 -08:00
2016-11-10 08:32:45 +01:00
2018-01-04 17:21:16 +01:00
2018-01-06 09:44:03 -03:00