You've already forked godot
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user