/** * Try to resync with the wiimote by starting a new handshake. * @param id id of the wiimote concerned */ JNIEXPORT void JNICALL Java_wiiusej_WiiUseApi_reSync (JNIEnv *env, jobject obj, jint id) { wiiuse_resync(wiimotes[id-1]); }
/** * Try to resync with the wiimote by starting a new handshake. * @param id id of the wiimote concerned */ JNIEXPORT void JNICALL Java_wiiusej_WiiUseApi_reSync (JNIEnv *env, jobject obj, jint id) { wiiuse_resync(wiiuse_get_by_id(wiimotes, nbMaxWiimotes, id)); }
void Wiimote::resync() { wiiuse_resync(this->wm); }