remove #if 0 code.
This commit is contained in:
65
src/events.c
65
src/events.c
@@ -661,71 +661,6 @@ static void event_status(struct wiimote_t* wm, byte* msg) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
switch(wm->expansion_state)
|
|
||||||
{
|
|
||||||
case 0: /* regular expansion detection */
|
|
||||||
{
|
|
||||||
if(attachment && wm->exp.type != EXP_NONE)
|
|
||||||
{
|
|
||||||
wm->expansion_dattempts = 0;
|
|
||||||
wm->expansion_state++;
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* give it another chance still */
|
|
||||||
if(wm->expansion_dattempts < 10)
|
|
||||||
{
|
|
||||||
wm->expansion_dattempts++;
|
|
||||||
wiiuse_status(wm);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* likely no attachment, give up and try M+ */
|
|
||||||
else {
|
|
||||||
wm->expansion_dattempts = 0;
|
|
||||||
wiiuse_set_motion_plus(wm, WIIMOTE_IS_SET(wm, WIIMOTE_STATE_EXP) ? 2 : 1);
|
|
||||||
wm->expansion_state++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case 1: /* try to init Motion+ */
|
|
||||||
{
|
|
||||||
if(attachment && wm->exp.type != EXP_NONE)
|
|
||||||
{
|
|
||||||
wm->expansion_dattempts = 0;
|
|
||||||
wm->expansion_state++;
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* give it another chance still */
|
|
||||||
if(wm->expansion_dattempts < 10)
|
|
||||||
{
|
|
||||||
wm->expansion_dattempts++;
|
|
||||||
wiiuse_status(wm);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
|
||||||
/* give up and move on */
|
|
||||||
wm->expansion_state++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* From now on the remote will only send status packets.
|
* From now on the remote will only send status packets.
|
||||||
* We need to send a WIIMOTE_CMD_REPORT_TYPE packet to
|
* We need to send a WIIMOTE_CMD_REPORT_TYPE packet to
|
||||||
|
|||||||
Reference in New Issue
Block a user