| 293 | } |
| 294 | |
| 295 | int 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. |
no test coverage detected