Locking the screen rotation on Android

Hello dear GDevelop community! I am a new GDevelop user and I try to make an Android game with main player controls based on device orientation. Basically the player moves in the direction the device is tilted. And I am faced with the problem of having to lock/block the Android’s automatic screen orientation feature.
Is there any way of controlling that via GDevelop’s functions or options?
Thank you!

I could only find the Deactivate Orientation Sensor action. But I think there is a way to block it.

Hello and thanks for the answer, indeed that would be one way of doing it, but on the other hand, i need the orientation sensor to control the player… :slight_smile: