We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-03-23 15:57:05 +0200

SDL2 in landscape mode

Is there going to be a fix in the SDL2 library to support landscape mode?

I waited for the market to allow SDL2 applications and now that we can have SDL2 games I had one of my games rejected because it's in landscape mode, at least rendering in landscape mode, but all swipes are as if in portrait mode. So minimize and close swipes don't follow the rotation.

Because the rotation isn't done automatically by the system I have to rotate and translate (in space) the position of the objects and the touch events. Everything related to my game works perfectly but if you want to close the game you have to swipe from right to left, or if you want to minimize you have to swipe from top to bottom.

Specifically the rejection reason word-for-word is:

"Your application is coded to landscape mode. This makes the swipe closing gesture not working as it should work from the top of the application. Currently it works from the right side since the application is set on portrait mode and not actually on landscape mode as the UI shows it. This might confuse the Jolla user since swipe gestures are orientating with the screen orientation. Please fix this orientation issue."

So my game was rejected because of a bug in the system and not my game.

SDL2 in landscape mode

Is there going to be a fix in the SDL2 library to support landscape mode?

I waited for the market to allow SDL2 applications and now that we can have SDL2 games I had one of my games rejected because it's in landscape mode, at least rendering in landscape mode, but all swipes are as if in portrait mode. So minimize and close swipes don't follow the rotation.

Because the rotation isn't done automatically by the system I have to rotate and translate (in space) the position of the objects and the touch events. Everything related to my game works perfectly but if you want to close the game you have to swipe from right to left, or if you want to minimize you have to swipe from top to bottom.

Specifically the rejection reason word-for-word is:

"Your application is coded to landscape mode. This makes the swipe closing gesture not working as it should work from the top of the application. Currently it works from the right side since the application is set on portrait mode and not actually on landscape mode as the UI shows it. This might confuse the Jolla user since swipe gestures are orientating with the screen orientation. Please fix this orientation issue."

So my game was rejected because of a bug in the system and not my game.