예제 #1
0
/**
 * 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]);
}
예제 #2
0
/**
 * 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));
}
예제 #3
0
파일: wiimote.cpp 프로젝트: baloo/wiidrums
void Wiimote::resync()
{
    wiiuse_resync(this->wm);
}