SDL_GetGamepadSensorDataRate(3)
β¨ SDL_GetGamepadSensorDataRate β¨
okay bestie, welcome to the SDL_GetGamepadSensorDataRate(3) page β it lives in the SDL3 FUNCTIONS section of the manual and it's literally just vibes about how fast your gamepad's sensor is spitting out readings π
π NAME π
SDL_GetGamepadSensorDataRate β get the data rate (number of events per second) of a gamepad sensor.
no cap, that's it. it tells you how many times per second the sensor goes brrr π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_gamepad.h>
float SDL_GetGamepadSensorDataRate(SDL_Gamepad *gamepad, SDL_SensorType type);
π¦ FUNCTION PARAMETERS π¦
gamepadβ the gamepad to query. the one you're being nosy about πtypeβ the type of sensor to query. like, which sensor on that gamepad you want the tea on.
π RETURN VALUE π
Returns the data rate, or 0.0f if the data rate is not available.
so if you get 0.0f back, that's not a personality flaw, it just means the info isn't available, periodt π«Ά
π THREAD SAFETY π
It is safe to call this function from any thread.
main character energy from any thread, fr fr β go off π₯
β AVAILABILITY β
This function is available since SDL 3.2.0.
and that's the whole page, bestie, you ate that π
Simple Directmedia Layer β SDL 3.4.18 β SDL_GetGamepadSensorDataRate(3). mwah, ty for reading, ily, go query some sensors πβ¨ππ¦πΈπ
π«Άπ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms