Skip to content

Commit d0077ba

Browse files
committed
Android framerate event disable
1 parent 8146a77 commit d0077ba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

addons/ofxAndroid/src/ofAppAndroidWindow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ Java_cc_openframeworks_OFAndroid_deviceHighestRefreshRate(JNIEnv* env, jclass
892892
if(window == nullptr || (window != nullptr && window->renderer() == nullptr)) return;
893893
int _refreshRate = (int) refreshRate;
894894
ofLogNotice("oF") << "deviceHighestRefreshRate:" << _refreshRate;
895-
ofNotifyEvent(ofxAndroidEvents().deviceHighestRefreshRate,_refreshRate );
895+
// ofNotifyEvent(ofxAndroidEvents().deviceHighestRefreshRate,_refreshRate );
896896
}
897897

898898

@@ -901,7 +901,7 @@ Java_cc_openframeworks_OFAndroid_deviceRefreshRate(JNIEnv* env, jclass thiz, j
901901
if(window == nullptr || (window != nullptr && window->renderer() == nullptr)) return;
902902
ofLogNotice("oF") << "deviceRefreshRateChanged:" << refreshRate;
903903
int _refreshRate = (int) refreshRate;
904-
ofNotifyEvent(ofxAndroidEvents().deviceRefreshRate,_refreshRate );
904+
//ofNotifyEvent(ofxAndroidEvents().deviceRefreshRate,_refreshRate );
905905
}
906906

907907
JNIEXPORT void JNICALL
@@ -914,7 +914,7 @@ Java_cc_openframeworks_OFAndroid_setSampleSize(JNIEnv* env, jclass thiz, jint
914914
JNIEXPORT void JNICALL
915915
Java_cc_openframeworks_OFAndroid_onAxisMoved(JNIEnv* env, jclass thiz, jint id, jint deviceid, jint productid, jfloat x, jfloat y){
916916
if(window == nullptr || (window != nullptr && window->renderer() == nullptr)) return;
917-
ofLogNotice("oF") << "axisMoved:[" << id << "] x:" << x << " y:" << y;
917+
//ofLogNotice("oF") << "axisMoved:[" << id << "] x:" << x << " y:" << y;
918918

919919
}
920920

0 commit comments

Comments
 (0)