SDL_JoystickNumHats(3)

πŸ’– SDL_JoystickNumHats(3) πŸ’–

okay so bestie, welcome to the SDL API Reference β€” yes it's giving vintage, yes it's from 2001, and yes we are still obsessed with it. sit down, grab a strawberry πŸ“, let's talk about hats. no not the ones on your head. joystick hats. iykyk.


✨ NAME ✨

SDL_JoystickNumHats β€” count the hats on your joystick, fr fr 🎩


🌸 SYNOPSIS 🌸

#include "SDL.h"

int SDL_JoystickNumHats(SDL_Joystick *joystick);

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this function returns the number of hats available from a previously opened SDL_Joystick. that's it. that's the whole vibe. πŸ’…

key word: previously opened. she's not opening anything for you, she's just telling you how many hats are already sitting on that joystick you opened. don't come for her with a raw pointer that was never opened, okay? πŸ™ˆ


⭐ RETURN VALUE ⭐

the number of hats. literally just that. the count. the hat census. πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€

  • SDL_JoystickGetHat
  • SDL_JoystickOpen

go read those too, bestie, they're part of the same little squad 🫢


reminder to my darling reader: the facts above are the facts. i added sparkle, not opinions about what this function might do. lowkey iconic of me ngl. ✨

and that's a wrap!! this page comes to you from the SDL source, dated Tue 11 Sep 2001, 23:00 β€” yes, 2001, ancient, historic, main character energy in the history books πŸ“œπŸ’€. mwah, love u, go count some hats. πŸŒˆπŸ’œ

πŸ“¦ where this page comes from