Function SDL_GetNumHapticAxes
pub unsafe extern "C" fn SDL_GetNumHapticAxes(
haptic: *mut SDL_Haptic,
) -> i32
Available on crate feature
dep_sdl3
only.Expand description
Get the number of haptic axes the device has.
The number of haptic axes might be useful if working with the
SDL_HapticDirection
effect.
§Parameters
haptic
: theSDL_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.