THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
A variable controlling which orientations are allowed on iOS/Android.
Defined in [SDL_hints.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_hints.h), but apps should _only_ `#include "SDL.h"`!
#define SDL_HINT_ORIENTATIONS "SDL_IOS_ORIENTATIONS"
In some circumstances it is necessary to be able to explicitly control which UI orientations are allowed.
This variable is a space delimited list of the following values: "LandscapeLeft", "LandscapeRight", "Portrait" "PortraitUpsideDown"
#include "SDL.h"
int main(int argc, char* argv[])
{"LandscapeLeft LandscapeRight");
SDL_SetHint(SDL_HINT_ORIENTATIONS, }
By default all orientations are allowed.
CategoryAPI, CategoryAPIMacro, CategoryDefine, CategoryHints, CategoryDraft