al_is_haptic_capable(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– al_is_haptic_capable(3) πŸ’–

okay bestie, welcome to the Library Functions Manual β€” this page is the Allegro 5 API's haptic vibe check, and it's literally asking: does this haptic device support the thing? πŸ¦‹

🌸 NAME 🌸

al_is_haptic_capable β€” Allegro 5 API

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_is_haptic_capable(ALLEGRO_HAPTIC * hap, int query) {

πŸ’… DESCRIPTION πŸ’…

So here's the tea: al_is_haptic_capable returns true if the haptic device supports the feature indicated by the query parameter, and false if the feature is not supported. No cap. 🫢

The query parameter must be one of the values of ALLEGRO_HAPTIC_CONSTANTS(3) β€” that's the menu, bestie, pick from it. ✨

πŸŽ€ 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.

πŸ”₯ SEE ALSO πŸ”₯


xoxo, from the Allegro reference manual πŸ’– β€” no date printed on this footer, just the manual name and the al_is_haptic_capable(3) title doing its main character thing. 🧚

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms