bool CryVR_WiimoteManagerPlugin::SetAspectRatio( bool aspect )
{
    if ( init )
    {
        if ( aspect )
        {
            for ( int i = 0; i < found; i++ )
            {
                wiiuse_set_aspect_ratio( wiimotes[i], WIIUSE_ASPECT_16_9 );
            }
        }

        else for ( int i = 0; i < found; i++ )
            {
                wiiuse_set_aspect_ratio( wiimotes[i], WIIUSE_ASPECT_4_3 );
            }

        return true;
    }

    return false;
}
예제 #2
0
/**
 * Notify wiiuse that your screen has an aspect ratio of 16/9.
 * @param id the id of the wiimote concerned
 */
JNIEXPORT void JNICALL Java_wiiusej_WiiUseApi_setScreenRatio169
(JNIEnv *env, jobject obj, jint id) {
	wiiuse_set_aspect_ratio(wiiuse_get_by_id(wiimotes, nbMaxWiimotes, id), WIIUSE_ASPECT_4_3);
}
예제 #3
0
/**
 * Notify wiiuse that your screen has an aspect ratio of 4/3.
 * @param id the id of the wiimote concerned
 */
JNIEXPORT void JNICALL Java_wiiusej_WiiUseApi_setScreenRatio43
(JNIEnv *env, jobject obj, jint id) {
	wiiuse_set_aspect_ratio(wiimotes[id-1], WIIUSE_ASPECT_4_3);
}
예제 #4
0
파일: wiimote.cpp 프로젝트: baloo/wiidrums
void Wiimote::setAspectRatio(enum aspect_t aspect)
{
    wiiuse_set_aspect_ratio(this->wm, aspect);
}