SDL_GetNumHapticAxes - Man Page
Get the number of haptic axes the device has.
Header File
Defined in SDL3/SDL_haptic.h
Synopsis
#include "SDL3/SDL.h" int SDL_GetNumHapticAxes(SDL_Haptic *haptic);
Description
The number of haptic axes might be useful if working with the
SDL_HapticDirection
effect.
Function Parameters
- haptic
the SDL_Haptic
device to query.
Return Value
Returns the number of axes on success or -1 on failure; call
SDL_GetError () for more information.
Availability
This function is available since SDL 3.2.0.
Referenced By
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS