diff options
Diffstat (limited to 'Source/3rdParty/SDL2/include/SDL_system.h')
-rw-r--r-- | Source/3rdParty/SDL2/include/SDL_system.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/3rdParty/SDL2/include/SDL_system.h b/Source/3rdParty/SDL2/include/SDL_system.h index 7b776fd..4dc372d 100644 --- a/Source/3rdParty/SDL2/include/SDL_system.h +++ b/Source/3rdParty/SDL2/include/SDL_system.h @@ -76,6 +76,18 @@ extern DECLSPEC SDL_bool SDLCALL SDL_DXGIGetOutputInfo( int displayIndex, int *a #endif /* __WIN32__ */ +/* Platform specific functions for Linux */ +#ifdef __LINUX__ + +/** + \brief Sets the UNIX nice value for a thread, using setpriority() if possible, and RealtimeKit if available. + + \return 0 on success, or -1 on error. + */ +extern DECLSPEC int SDLCALL SDL_LinuxSetThreadPriority(Sint64 threadID, int priority); + +#endif /* __LINUX__ */ + /* Platform specific functions for iOS */ #if defined(__IPHONEOS__) && __IPHONEOS__ @@ -114,6 +126,21 @@ extern DECLSPEC void * SDLCALL SDL_AndroidGetActivity(void); extern DECLSPEC SDL_bool SDLCALL SDL_IsAndroidTV(void); /** + \brief Return true if the application is running on a Chromebook + */ +extern DECLSPEC SDL_bool SDLCALL SDL_IsChromebook(void); + +/** + \brief Return true is the application is running on a Samsung DeX docking station + */ +extern DECLSPEC SDL_bool SDLCALL SDL_IsDeXMode(void); + +/** + \brief Trigger the Android system back button behavior. + */ +extern DECLSPEC void SDLCALL SDL_AndroidBackButton(void); + +/** See the official Android developer guide for more information: http://developer.android.com/guide/topics/data/data-storage.html */ @@ -236,6 +263,11 @@ extern DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily(); #endif /* __WINRT__ */ +/** + \brief Return true if the current device is a tablet. + */ +extern DECLSPEC SDL_bool SDLCALL SDL_IsTablet(void); + /* Ends C function definitions when using C++ */ #ifdef __cplusplus } |