1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add CameraFeed support for Android

Co-authored-by: KOGA Mitsuhiro <shiena.jp@gmail.com>
This commit is contained in:
Leo de Penning
2025-04-18 22:20:21 +09:00
committed by KOGA Mitsuhiro
parent 209a446e36
commit 296ca79b9d
12 changed files with 666 additions and 2 deletions

View File

@@ -279,6 +279,13 @@ DisplayServer::ScreenOrientation DisplayServerAndroid::screen_get_orientation(in
return (ScreenOrientation)orientation;
}
int DisplayServerAndroid::get_display_rotation() const {
GodotIOJavaWrapper *godot_io_java = OS_Android::get_singleton()->get_godot_io_java();
ERR_FAIL_NULL_V(godot_io_java, 0);
return godot_io_java->get_display_rotation();
}
int DisplayServerAndroid::get_screen_count() const {
return 1;
}