al_is_haptic_capable(3alleg5)

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

πŸ’– al_is_haptic_capable β€” Allegro 5 API πŸ’–

okay bestie, so this one lives in the al_is_haptic_capable(3alleg5) family, it's part of the Allegro 5 API, and it's literally the vibes-check function for haptic devices. let's go πŸŽ€


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_is_haptic_capable(ALLEGRO_HAPTIC * hap, int query) {

🌸 DESCRIPTION 🌸

So like, you hand it a haptic device and a query, and it tells you if that device can actually do the thing you're asking about. Returns true if the haptic device supports the feature indicated by the query parameter, and false if the feature is not supported. no cap, that's the whole gig πŸ’…

The query parameter must be one of the values of ALLEGRO_HAPTIC_CONSTANTS(3alleg5). like, one of those values specifically, don't freestyle it, bestie πŸ™ˆ


πŸ¦‹ SINCE πŸ¦‹

5.1.9 ✨

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

so yeah, it's giving experimental, the Allegro girlies are literally waiting on your feedback before they decide anything. use it, but know it might get a glow-up later πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘


k that's the whole page, go be iconic with your haptics πŸ«ΆπŸ’–

Allegro reference manual Β· al_is_haptic_capable(3alleg5) β€” mwah, catch you in the next manpage bestie πŸ’…πŸŒŸ

πŸ“¦ where this page comes from