SDL_IsJoystickHaptic(3)

πŸ’– SDL_IsJoystickHaptic πŸ’–

okay bestie so you're deep in the SDL3 docs, page SDL_IsJoystickHaptic(3), and you need to know one (1) thing: does this controller actually vibrate? 🫨✨


✨ NAME ✨

SDL_IsJoystickHaptic β€” lowkey just asking "does this joystick have haptic features?" πŸŽ€


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_haptic.h>

bool SDL_IsJoystickHaptic(SDL_Joystick *joystick);

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • joystick β€” the SDL_Joystick you want to vibe-check for haptic capabilities. like, this one, right here, is it a rumble girlie or not πŸ’…

⭐ RETURN VALUE ⭐

Returns true if the joystick is haptic, or false if it isn't. that's it, that's the whole answer, no cap 🎯


πŸ‘‘ AVAILABILITY πŸ‘‘

This function is available since SDL 3.2.0. so if you're on something older… yeah no, it's not gonna be there 😭


🌈 SEE ALSO 🌈


mwah πŸ’‹ that's the whole page, from the lovely people at Simple Directmedia Layer, this is SDL 3.4.18, and it's still SDL_IsJoystickHaptic(3) bestie β€” go make something rumble πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from