When running the game with love 11.3 on android, regardless of how I rotate my phone, the game stays in landscape mode, only flipping by 180° if anything - which is what I want.
When running the game with love 11.4, rotating will change the orientation and also change it to portrait mode.
Both conveniently ignore the rotation lock setting of android.
We updated the game to 11.4 some time ago for the LuaJIT version update among other things I would like to use 11.4 with the old behaviour but right now I am clueless how I can enforce landscape mode.
I read a bit around in the forums and tried to intercept the display rotation via love.displayrotated or love.resize and flip the width/height values via love.window.getMode and love.window.setMode if height > width as that is what I had found in an older thread as a method to enforce portrait mode on android. Didn't work as intended though.
I then found https://github.com/love2d/love-android/issues/196 and figured based on the statement
that I need to make an OS specific differentation for the resizable flag. And great, it did work for my device (running LineageOS with Android 9) with Love 11.4, the game stays in landscape mode and only changes to the flipped version when I turn it by 180°.The t.window.resizable = false is needed there to prevent the game change orientation so that's fine.
So I shared that version with the person that originally brought that behaviour to my attention and...it doesn't work for them. They use a Galaxy S10 with Android 12.
And now I'm completely lost where I should continue. What other options do I have to control orientation other than preventing resizing?
Game source: https://github.com/panel-attack/panel-attack
PR that works for me but not for others: https://github.com/panel-attack/panel-a ... /686/files
Manually packaged .love from the PR code: https://endaris.s-ul.eu/M9lN4n2u.love