(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)
SDL_PROP_DISPLAY_KMSDRM_PANEL_ORIENTATION_NUMBER
Please refer to SDL_GetDisplayProperties for details.
CategoryAPI, CategoryAPIMacro