Scroll to navigation

SDL_IsTablet(3) SDL3 FUNCTIONS SDL_IsTablet(3)

NAME

SDL_IsTablet - Query if the current device is a tablet.

HEADER FILE

Defined in SDL3/SDL_system.h

SYNOPSIS

#include "SDL3/SDL.h"
bool SDL_IsTablet(void);

DESCRIPTION

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

RETURN VALUE

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

AVAILABILITY

This function is available since SDL 3.1.3.

SDL 3.1.6 Simple Directmedia Layer