table of contents
other versions
SDL_HapticName(3) | SDL3 FUNCTIONS | SDL_HapticName(3) |
NAME¶
SDL_HapticName - Get the implementation dependent name of a haptic device.
SYNOPSIS¶
#include "SDL3/SDL.h"
const char* SDL_HapticName(int device_index);
DESCRIPTION¶
This can be called before any joysticks are opened. If no name can be found, this function returns NULL.
FUNCTION PARAMETERS¶
- device_index
- index of the device to query.
RETURN VALUE¶
Returns the name of the device or NULL on failure; call
SDL_GetError () for more information.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_NumHaptics(3)
SDL 3.0.0 | SDL |