removed comments

git-svn-id: http://wiiusej.googlecode.com/svn/trunk@62 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
guilhem.duche
2008-02-21 23:02:00 +00:00
parent b2260afccf
commit 2cfc1caea3

View File

@@ -347,6 +347,7 @@ JNIEXPORT void JNICALL Java_wiiusej_WiiUseApi_specialPoll
wiimotes[i]->gforce.x, wiimotes[i]->gforce.y, wiimotes[i]->gforce.z); wiimotes[i]->gforce.x, wiimotes[i]->gforce.y, wiimotes[i]->gforce.z);
} }
/* add generic event to java object used to gather events in c environment */
mid = (*env)->GetMethodID(env, cls, "addWiimoteEvent", mid = (*env)->GetMethodID(env, cls, "addWiimoteEvent",
"()V"); "()V");
if (mid == 0) { if (mid == 0) {
@@ -356,35 +357,35 @@ JNIEXPORT void JNICALL Java_wiiusej_WiiUseApi_specialPoll
break; break;
case WIIUSE_STATUS: case WIIUSE_STATUS:
// /* a status event occured */ /* a status event occured */
// mid = (*env)->GetMethodID(env, cls, "addDisconnectionEvent", "(IZFSZIZFFFZZZZ)V"); mid = (*env)->GetMethodID(env, cls, "addDisconnectionEvent", "(IZFSZIZFFFZZZZ)V");
// if (mid == 0) { if (mid == 0) {
// return; return;
// } }
// /* LEDS */ /* LEDS */
// if (WIIUSE_IS_LED_SET(wiimotes[i], 1)) leds += 1; if (WIIUSE_IS_LED_SET(wiimotes[i], 1)) leds += 1;
// if (WIIUSE_IS_LED_SET(wiimotes[i], 2)) leds += 2; if (WIIUSE_IS_LED_SET(wiimotes[i], 2)) leds += 2;
// if (WIIUSE_IS_LED_SET(wiimotes[i], 3)) leds += 4; if (WIIUSE_IS_LED_SET(wiimotes[i], 3)) leds += 4;
// if (WIIUSE_IS_LED_SET(wiimotes[i], 4)) leds += 8; if (WIIUSE_IS_LED_SET(wiimotes[i], 4)) leds += 8;
//
// (*env)->CallVoidMethod(env, gath, mid, (*env)->CallVoidMethod(env, gath, mid,
// wiimotes[i]->unid, WIIMOTE_IS_SET(wiimotes[i], WIIMOTE_STATE_CONNECTED), wiimotes[i]->unid, WIIMOTE_IS_SET(wiimotes[i], WIIMOTE_STATE_CONNECTED),
// wiimotes[i]->battery_level, leds, WIIUSE_USING_SPEAKER(wiimotes[i]), wiimotes[i]->battery_level, leds, WIIUSE_USING_SPEAKER(wiimotes[i]),
// wiimotes[i]->exp.type,WIIMOTE_IS_SET(wiimotes[i], WIIMOTE_STATE_RUMBLE), wiimotes[i]->exp.type,WIIMOTE_IS_SET(wiimotes[i], WIIMOTE_STATE_RUMBLE),
// wiimotes[i]->orient_threshold, wiimotes[i]->accel_threshold, wiimotes[i]->orient_threshold, wiimotes[i]->accel_threshold,
// wiimotes[i]->accel_calib.st_alpha, WIIMOTE_IS_FLAG_SET(wiimotes[i],WIIUSE_CONTINUOUS), wiimotes[i]->accel_calib.st_alpha, WIIMOTE_IS_FLAG_SET(wiimotes[i],WIIUSE_CONTINUOUS),
// WIIMOTE_IS_FLAG_SET(wiimotes[i],WIIUSE_SMOOTHING), WIIUSE_USING_IR(wiimotes[i]), WIIMOTE_IS_FLAG_SET(wiimotes[i],WIIUSE_SMOOTHING), WIIUSE_USING_IR(wiimotes[i]),
// WIIUSE_USING_ACC(wiimotes[i])); WIIUSE_USING_ACC(wiimotes[i]));
break; break;
case WIIUSE_DISCONNECT: case WIIUSE_DISCONNECT:
// /* the wiimote disconnected */ /* the wiimote disconnected */
// mid = (*env)->GetMethodID(env, cls, "addDisconnectionEvent", "(I)V"); mid = (*env)->GetMethodID(env, cls, "addDisconnectionEvent", "(I)V");
// if (mid == 0) { if (mid == 0) {
// return; return;
// } }
// (*env)->CallVoidMethod(env, gath, mid, wiimotes[i]->unid); (*env)->CallVoidMethod(env, gath, mid, wiimotes[i]->unid);
break; break;
default: default: