DOKK / manpages / debian 11 / allegro5-doc / al_is_haptic_capable.3alleg5.en
al_is_haptic_capable(3alleg5) al_is_haptic_capable(3alleg5)

al_is_haptic_capable - Allegro 5 API

#include <allegro5/allegro.h>
bool al_is_haptic_capable(ALLEGRO_HAPTIC * hap, int query) {
    

Returns true if the haptic device supports the feature indicated by the query parameter, false if the feature is not supported. The query parameter must be one of the values of ALLEGRO_HAPTIC_CONSTANTS(3alleg5).

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.

al_get_haptic_capabilities(3alleg5)

Allegro reference manual