|
Size: 1021
Comment: Removed spaces.
|
Size: 1101
Comment: added example and fixed table presentation
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 11: | Line 11: |
| ||LandscapeLeft||top of device left|| ||LandscapeRight||top of device right|| |
||!LandscapeLeft||top of device left|| ||!LandscapeRight||top of device right|| |
| Line 14: | Line 14: |
| ||PortraitUpsideDown||top of device down|| | ||!PortraitUpsideDown||top of device down|| |
| Line 22: | Line 22: |
| You can add your code example here | int main(int argc, char* argv[]) { SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeLeft LandscapeRight"); } |
DRAFT |
SDL_HINT_ORIENTATIONS
A hint that specifies a variable controlling which orientations are allowed on iOS.
Values
LandscapeLeft |
top of device left |
LandscapeRight |
top of device right |
Portrait |
top of device up |
PortraitUpsideDown |
top of device down |
Default
By default all orientations are allowed.
Code Examples
int main(int argc, char* argv[])
{
SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeLeft LandscapeRight");
}
Remarks
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 above values.
