logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ALLEGRO_HAPTIC_CONSTANTS - Allegro 5 API

Description

       This  enum contains flags that are used to define haptic effects and capabilities.  If the flag is set in
       the return value of al_get_haptic_capabilities(3alleg5), it means the device supports the  given  effect.
       The  value  of  these  flags should be set into a ALLEGRO_HAPTIC_EFFECT(3alleg5) struct to determine what
       kind of haptic effect should be played.

       • ALLEGRO_HAPTIC_RUMBLE - simple vibration effects

       • ALLEGRO_HAPTIC_PERIODIC - periodic, wave-form effects

       • ALLEGRO_HAPTIC_CONSTANT - constant effects

       • ALLEGRO_HAPTIC_SPRING - spring effects

       • ALLEGRO_HAPTIC_FRICTION - friction effects

       • ALLEGRO_HAPTIC_DAMPER - damper effects

       • ALLEGRO_HAPTIC_INERTIA - inertia effects

       • ALLEGRO_HAPTIC_RAMP - ramp effects

       • ALLEGRO_HAPTIC_SQUARE - square wave periodic effect

       • ALLEGRO_HAPTIC_TRIANGLE - triangle wave periodic effect

       • ALLEGRO_HAPTIC_SINE - sine wave periodic effect

       • ALLEGRO_HAPTIC_SAW_UP - upwards saw wave periodic effect

       • ALLEGRO_HAPTIC_SAW_DOWN - downwards saw wave periodic effect

       • ALLEGRO_HAPTIC_CUSTOM - custom wave periodic effect

       • ALLEGRO_HAPTIC_GAIN - the haptic device supports gain setting

       • ALLEGRO_HAPTIC_ANGLE - the haptic device supports angle coordinates

       • ALLEGRO_HAPTIC_RADIUS - the haptic device supports radius coordinates

       • ALLEGRO_HAPTIC_AZIMUTH - the haptic device supports azimuth coordinates

       • ALLEGRO_HAPTIC_AUTOCENTER

Name

       ALLEGRO_HAPTIC_CONSTANTS - Allegro 5 API

See Also

al_get_haptic_capabilities(3alleg5), ALLEGRO_HAPTIC_EFFECT(3alleg5)

Allegro reference manual                                                       ALLEGRO_HAPTIC_CONSTANTS(3alleg5)

Since

       5.1.8

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

Synopsis

              #include <allegro5/allegro.h>

              enum ALLEGRO_HAPTIC_CONSTANTS

See Also