diff options
Diffstat (limited to 'wiimote.c')
-rw-r--r-- | wiimote.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -177,7 +177,6 @@ wiimoteInitDisplay (CompPlugin *p, CompDisplay *d) { WiimoteDisplay *ad; - int i, j; if (!checkPluginABI ("core", CORE_ABIVERSION)) return FALSE; @@ -203,21 +202,7 @@ wiimoteInitDisplay (CompPlugin *p, wiimoteSetReportKeyInitiate (d, wiimoteSendInfo); ad->nWiimote = 0; - - for (i = 0; i < MAX_WIIMOTES; i++) - { - ad->cWiimote[i].connected = FALSE; - ad->cWiimote[i].initiated = FALSE; - ad->cWiimote[i].initSet = FALSE; - - /* Reinitialise all values */ - for (j = 0; j < MAX_REPORTS; j++) - { - ad->cWiimote[i].report[j].type = 0; - } - } - - reloadWiimoteOptions (d); + ad->wiimotes = NULL; wiimoteSetXCalibrationMulNotify (d, wiimoteDisplayOptionChanged); wiimoteSetYCalibrationMulNotify (d, wiimoteDisplayOptionChanged); |