SDL_GetHapticID3
Get the instance id of an opened haptic device.
Usage
#include "SDL3/SDL.h"
SDL_HapticID SDL_GetHapticID(SDL_Haptic *haptic);
Header file
Defined in SDL3/SDL_haptic.h
Function parameters
- haptic
-
the
SDL_Haptic
device to query.
Return value
( SDL_HapticID ) Returns the instance ID of the specified haptic device on success or 0 on failure; call
SDL_GetError () for more information.