0.12 work in progress
git-svn-id: http://wiiusej.googlecode.com/svn/trunk@139 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
@@ -489,6 +489,24 @@ JNIEXPORT void JNICALL Java_wiiusej_WiiUseApi_specialPoll
|
|||||||
(*env)->CallVoidMethod(env, gath, mid, wiimotes[i]->unid);
|
(*env)->CallVoidMethod(env, gath, mid, wiimotes[i]->unid);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WIIUSE_NUNCHUK_INSERTED:
|
||||||
|
/* the wiimote disconnected */
|
||||||
|
mid = (*env)->GetMethodID(env, cls, "addNunchukInsertedEvent", "(I)V");
|
||||||
|
if (mid == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
(*env)->CallVoidMethod(env, gath, mid, wiimotes[i]->unid);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case WIIUSE_NUNCHUK_REMOVED:
|
||||||
|
/* the wiimote disconnected */
|
||||||
|
mid = (*env)->GetMethodID(env, cls, "addNunchukRemovedEvent", "(I)V");
|
||||||
|
if (mid == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
(*env)->CallVoidMethod(env, gath, mid, wiimotes[i]->unid);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user