Get the form factor of the current device.
Defined in <SDL3/SDL_system.h>
SDL_FormFactor SDL_GetDeviceFormFactor(void);(SDL_FormFactor) Returns the best guess for the form factor of the current device.
This function guesses what the device may be, but may report inaccurate or outright wrong results. For example, it may report a laptop as a desktop, or a car device as a phone.
Depending on the usage, there may be different functions better suited for each purpose. For example, activating touch controls can be done by detecting the presence of a touchscreen rather than restricting to phones and tablets.
This function is available since SDL 3.6.0.