al_is_haptic_capable(3alleg5)
π 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
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms