Merge pull request #113297 from shiena/feature/lifecycle-callbacks

Add platform lifecycle callbacks to CameraServer base class
This commit is contained in:
Thaddeus Crews 2025-12-02 11:51:52 -06:00
commit cd8a292324
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
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