SDL_JOYSTICK_AXIS_MIN(3)

✨ SDL_JOYSTICK_AXIS_MIN ✨

okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today we're talking about SDL_JOYSTICK_AXIS_MIN β€” literally the smallest value an SDL_Joystick's axis can report. that's it. that's the whole vibe. πŸ’–


πŸŽ€ NAME πŸŽ€

SDL_JOYSTICK_AXIS_MIN β€” the smallest value an SDL_Joystick's axis can report. no cap, that's literally its whole job. πŸ’…


🌸 SYNOPSIS 🌸

pull it in like this, bestie:

#include <SDL3/SDL_joystick.h>

#define SDL_JOYSTICK_AXIS_MIN   -32768

so you just #include the header and the macro is right there, already defined, ready to slay. ✨


πŸ’œ DESCRIPTION πŸ’œ

okay so listen. this is a negative number! 😭

that's the entire description. she's negative. she's the floor. she's the bottom of the axis range and she knows it. when your joystick axis is fully pushed one way, this is what you get. πŸ‘‘


πŸ¦‹ AVAILABILITY πŸ¦‹

this macro is available since SDL 3.2.0. if you're on anything older, sorry babe, she wasn't born yet. πŸ™ˆ


🌈 SEE ALSO 🌈

  • SDL_JOYSTICK_AXIS_MAX(3) β€” her iconic counterpart, the biggest value. the two of them together? it's giving range. πŸ’–

and that's the whole page, bestie!! 🫢 this little gem comes to you from the Simple Directmedia Layer crew, living in SDL 3.4.18, filed under SDL_JOYSTICK_AXIS_MIN(3). mwah, go read the MAX one next, iykyk πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from