mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
Added SDL_GetSandbox()
This adds support for detecting whether you're running in a sandbox on macOS
This commit is contained in:
parent
d7b1ba1bfc
commit
d6981da5a4
12 changed files with 69 additions and 95 deletions
|
@ -565,6 +565,30 @@ extern SDL_DECLSPEC bool SDLCALL SDL_IsTablet(void);
|
|||
*/
|
||||
extern SDL_DECLSPEC bool SDLCALL SDL_IsTV(void);
|
||||
|
||||
/**
|
||||
* Application sandbox environment.
|
||||
*
|
||||
* \since This enum is available since SDL 3.1.6.
|
||||
*/
|
||||
typedef enum SDL_Sandbox
|
||||
{
|
||||
SDL_SANDBOX_NONE = 0,
|
||||
SDL_SANDBOX_UNKNOWN,
|
||||
SDL_SANDBOX_FLATPAK,
|
||||
SDL_SANDBOX_SNAP,
|
||||
SDL_SANDBOX_MACOS
|
||||
} SDL_Sandbox;
|
||||
|
||||
/**
|
||||
* Get the application sandbox environment, if any.
|
||||
*
|
||||
* \returns the application sandbox environment or SDL_SANDBOX_NONE if the application is not running in a sandbox environment.
|
||||
*
|
||||
* \since This function is available since SDL 3.1.6.
|
||||
*/
|
||||
extern SDL_DECLSPEC SDL_Sandbox SDLCALL SDL_GetSandbox(void);
|
||||
|
||||
|
||||
/* Functions used by iOS app delegates to notify SDL about state changes. */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue