DOKK / manpages / debian 13 / libsdl3-doc / SDL_GetHapticNameForID.3.en
SDL_GetHapticNameForID(3) SDL3 FUNCTIONS SDL_GetHapticNameForID(3)

SDL_GetHapticNameForID - Get the implementation dependent name of a haptic device.

Defined in SDL3/SDL_haptic.h

#include "SDL3/SDL.h"
const char * SDL_GetHapticNameForID(SDL_HapticID instance_id);

This can be called before any haptic devices are opened.

the haptic device instance ID.

Returns the name of the selected haptic device. If no name can be found, this function returns NULL; call

SDL_GetError () for more information.

This function is available since SDL 3.2.0.

(3), SDL_GetHapticName(3), (3), SDL_OpenHaptic(3)

SDL 3.2.10 Simple Directmedia Layer