ipad SDL_HINT_ORIENTATIONS

i want to work in Landscape. in android and iphone, I achieve this with the following code:

#if (defined(ANDROID) ||
(TARGET_OS_IOS || TARGET_OS_IPHONE || TARGET_OS_SIMULATOR))
SDL_SetHint(SDL_HINT_ORIENTATIONS, “LandscapeLeft LandscapeRight”);
#endif

but it not work in ipad. There is nothing like TARGET_OS_IPAD. Is there anything in sdl2 that can help me with this?

Ok. We can set it in info.plist

1 Like