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_JoystickGetHatSDL_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
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms