al_is_haptic_effect_playing(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ al_is_haptic_effect_playing ✨

okay bestie, so this is a page from the al_is_haptic_effect_playing(3alleg5) manual β€” aka the Allegro 5 API β€” and it's literally just one lil function that tells you if your controller is currently going brrr πŸ’…


πŸŽ€ NAME πŸŽ€

al_is_haptic_effect_playing β€” the Allegro 5 API function that does a vibe check on your haptic effect πŸ‘‘


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

bool al_is_haptic_effect_playing(ALLEGRO_HAPTIC_EFFECT_ID *id)

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this function returns true if the haptic effect is currently playing πŸ’– and returns false if:

  • the effect has been stopped πŸ›‘
  • it has already finished playing (rip, it ate and left no crumbs) πŸ’€
  • or it has not been played yet πŸ™ˆ

the play_id must be a valid ALLEGRO_HAPTIC_EFFECT_ID(3alleg5) that you got from one of these three besties:

no cap, if your id didn't come from one of those, we're not vibing. periodt. πŸ’…

⭐ SINCE ⭐

5.1.8 πŸ•°οΈβœ¨

[Unstable API]: Perhaps could be simplified due to limited support for all the exposed features across all of the platforms. Awaiting feedback from users.

ngl bestie this one's still in its experimental era 🧚 it might get simplified later because, like, not every platform supports all the features it exposes, and the devs are literally waiting on feedback from users. so if you have thoughts, speak up πŸ‘‘


πŸ’– and that's the whole page, you're so welcome πŸ’–

this iconic little entry lives in the Allegro reference manual and it's dated al_is_haptic_effect_playing(3alleg5) β€” slay, go make something rumble 🫢🌸

πŸ“¦ where this page comes from