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

Add platform lifecycle callbacks to CameraServer base class

This commit is contained in:
KOGA Mitsuhiro
2025-11-29 07:14:40 +09:00
parent f5918a9d35
commit 85ec5b9f42
8 changed files with 44 additions and 30 deletions

View File

@@ -766,7 +766,7 @@ class Godot private constructor(val context: Context) {
if (currentConfig.orientation != newConfig.orientation) {
runOnRenderThread {
GodotLib.onScreenRotationChange()
GodotLib.onScreenRotationChange(newConfig.orientation)
}
}
currentConfig = newConfig

View File

@@ -297,8 +297,9 @@ public class GodotLib {
/**
* Invoked when the screen orientation changes.
* @param orientation the new screen orientation
*/
static native void onScreenRotationChange();
static native void onScreenRotationChange(int orientation);
/**
* @return true if input must be dispatched from the render thread. If false, input is