MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_display_rotation

Method get_display_rotation

platform/android/java_godot_io_wrapper.cpp:295–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295int GodotIOJavaWrapper::get_display_rotation() {
296 if (_get_display_rotation) {
297 JNIEnv *env = get_jni_env();
298 ERR_FAIL_NULL_V(env, 0);
299 return env->CallIntMethod(godot_io_instance, _get_display_rotation);
300 } else {
301 return 0;
302 }
303}
304
305// SafeNumeric because it can be changed from non-main thread and we need to
306// ensure the change is immediately visible to other threads.

Callers 1

_set_rotationMethod · 0.45

Calls 1

get_jni_envFunction · 0.85

Tested by

no test coverage detected