summaryrefslogtreecommitdiff
path: root/wiimote.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiimote.c')
-rw-r--r--wiimote.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/wiimote.c b/wiimote.c
index fba0632..28c9de8 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -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);