Wiki Page Content

Revision 6 as of 2015-05-11 14:19:10

Clear message

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.


CategoryDefine, CategoryHints

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit