“Been playing Slay for years on and off, but just noticed that on my Pixel 5 the game ignores the system auto-rotate setting. I have it turned off but the game rotates anyway making it hard to play in bed. I’m sure this was fine the last time I played a while ago. I’m hoping this can be fixed to obey the system setting.”
If the device has auto-rotate switched off shouldn’t SDL handle that and not rotate our app? Or is that something we need to check for in our code?
Did you find a resolution to this? I’m running into the same issue with SDL2. I tried setting android:screenOrientation="fullUser"
in the Android manifest file, but that has no effect.
SDL_GetDisplayOrientation() seems to ignore the OS orientation screen lock setting, and only report on the sensor-based orientation.
I don’t believe it ever was a bug in SDL2. My understanding is that Android made a policy change that apps should not be allowed to prevent rotation, so the previous methods to achieve this stopped working.