SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_GetDeviceFormFactorName

Get a short name for the current device.

Header File

Defined in <SDL3/SDL_system.h>

Syntax

const char* SDL_GetDeviceFormFactorName(SDL_FormFactor form_factor);

Function Parameters

SDL_FormFactor form_factor the form factor to query.

Return Value

(const char *) Returns a human-readable name for the given form factor, or "SDL_FORMFACTOR_UNKNOWN" if the form factor isn't recognized.

Remarks

The name will be in English.

Version

This function is available since SDL 3.6.0.

See Also


CategoryAPI, CategoryAPIFunction, CategorySystem


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.