Scroll to navigation

SDL_GetJoystickSensorDataRate(3) SDL3 FUNCTIONS SDL_GetJoystickSensorDataRate(3)

NAME

SDL_GetJoystickSensorDataRate - Get the data rate (number of events per second) of a joystick sensor.

SYNOPSIS

#include <SDL3/SDL_joystick.h>
float SDL_GetJoystickSensorDataRate(SDL_Joystick *joystick, SDL_SensorType type);

FUNCTION PARAMETERS

the joystick to query.
the type of sensor to query.

RETURN VALUE

Returns the data rate, or 0.0f if the data rate is not available.

THREAD SAFETY

It is safe to call this function from any thread.

AVAILABILITY

This function is available since SDL 3.6.0.

SDL 3.5.0 Simple Directmedia Layer