Scroll to navigation

SDL_IsPhone(3) SDL3 FUNCTIONS SDL_IsPhone(3)

NAME

SDL_IsPhone - Query if the current device is a phone.

SYNOPSIS

#include <SDL3/SDL_system.h>
bool SDL_IsPhone(void);

DESCRIPTION

If SDL can't determine this, it will return false.

RETURN VALUE

Returns true if the device is a phone, false otherwise.

THREAD SAFETY

It is safe to call this function from any thread.

AVAILABILITY

This function is available since SDL 3.6.0.

SDL 3.5.0 Simple Directmedia Layer