disconnect fully if we lose connection.

This commit is contained in:
Ryan Pavlik
2011-05-02 15:53:53 -05:00
parent 311700e7dc
commit 3f0aeb98fd

View File

@@ -144,6 +144,7 @@ int wiiuse_poll(struct wiimote_t** wm, int wiimotes) {
/* this can happen if the bluetooth dongle is disconnected */ /* this can happen if the bluetooth dongle is disconnected */
WIIUSE_ERROR("Bluetooth appears to be disconnected. Wiimote unid %i will be disconnected.", wm[i]->unid); WIIUSE_ERROR("Bluetooth appears to be disconnected. Wiimote unid %i will be disconnected.", wm[i]->unid);
wiiuse_disconnect(wm[i]); wiiuse_disconnect(wm[i]);
wiiuse_disconnected(wm[i]);
wm[i]->event = WIIUSE_UNEXPECTED_DISCONNECT; wm[i]->event = WIIUSE_UNEXPECTED_DISCONNECT;
} }