When I have one wiimote connected and remove the batteries, it does not trigger any events. If I try to reconnect the wiimote by pressing 1+2, it results in an endless loop saying that the wiimote is not connected. I've taken a look at the source code and believe the problem lies in the fact that the wiimote does not successfully disconnect itself.
if (r == -1) {.
2009-09-22 13:34:11 UTC in wiiuse