mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-14 07:38:24 +02:00
Added SDL_IsPhone()
This commit is contained in:
@@ -616,6 +616,19 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SendAndroidMessage(Uint32 command, int para
|
||||
|
||||
#endif /* SDL_PLATFORM_ANDROID */
|
||||
|
||||
/**
|
||||
* Query if the current device is a phone.
|
||||
*
|
||||
* If SDL can't determine this, it will return false.
|
||||
*
|
||||
* \returns true if the device is a phone, false otherwise.
|
||||
*
|
||||
* \threadsafety It is safe to call this function from any thread.
|
||||
*
|
||||
* \since This function is available since SDL 3.6.0.
|
||||
*/
|
||||
extern SDL_DECLSPEC bool SDLCALL SDL_IsPhone(void);
|
||||
|
||||
/**
|
||||
* Query if the current device is a tablet.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user